Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.application.cache
Class CacheFloatDistanceInOnDiskMatrix<O extends DatabaseObject,D extends NumberDistance<D,N>,N extends Number>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.logging.AbstractLoggable
      extended by de.lmu.ifi.dbs.elki.application.AbstractApplication
          extended by de.lmu.ifi.dbs.elki.application.cache.CacheFloatDistanceInOnDiskMatrix<O,D,N>
Type Parameters:
O - Object type
D - Distance type
N - Number type
All Implemented Interfaces:
Parameterizable

public class CacheFloatDistanceInOnDiskMatrix<O extends DatabaseObject,D extends NumberDistance<D,N>,N extends Number>
extends AbstractApplication

Wrapper to convert a traditional text-serialized result into a on-disk matrix for random access.

Author:
Erich Schubert

Field Summary
static OptionID CACHE_ID
          OptionID for CACHE_PARAM
private  FileParameter CACHE_PARAM
          Parameter that specifies the name of the directory to be re-parsed.
private  ObjectParameter<DatabaseConnection<O>> DATABASE_CONNECTION_PARAM
          Parameter to specify the database connection to be used, must extend DatabaseConnection.
private  DatabaseConnection<O> databaseConnection
          Holds the database connection to have the algorithm run with.
private static boolean debugExtraCheckSymmetry
          Debug flag, to double-check all write operations.
private static boolean debugExtraCheckWrites
          Debug flag, to double-check all write operations.
private  DistanceFunction<O,D> distance
          Distance function that is to be cached.
static OptionID DISTANCE_ID
          OptionID for DISTANCE_PARAM
private  ObjectParameter<DistanceFunction<O,D>> DISTANCE_PARAM
          Parameter that specifies the name of the directory to be re-parsed.
private static int FLOAT_SIZE
          Storage size: 4 bytes floats
private  File out
          Output file.
 
Fields inherited from class de.lmu.ifi.dbs.elki.application.AbstractApplication
config, INFORMATION, STATIC_LOGGER
 
Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable
debug, logger
 
Constructor Summary
CacheFloatDistanceInOnDiskMatrix(Parameterization config)
          Constructor, adhering to Parameterizable
 
Method Summary
static void main(String[] args)
          Main method, delegate to super class.
 void run()
          Runs the application.
 
Methods inherited from class de.lmu.ifi.dbs.elki.application.AbstractApplication
isVerbose, printErrorMessage, runCLIApplication, usage
 
Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable
debugFine, debugFiner, debugFinest, exception, progress, verbose, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATABASE_CONNECTION_PARAM

private final ObjectParameter<DatabaseConnection<O extends DatabaseObject>> DATABASE_CONNECTION_PARAM
Parameter to specify the database connection to be used, must extend DatabaseConnection.

Key: -dbc

Default value: FileBasedDatabaseConnection


CACHE_ID

public static final OptionID CACHE_ID
OptionID for CACHE_PARAM


CACHE_PARAM

private final FileParameter CACHE_PARAM
Parameter that specifies the name of the directory to be re-parsed.

Key: -loader.diskcache


debugExtraCheckWrites

private static final boolean debugExtraCheckWrites
Debug flag, to double-check all write operations.

See Also:
Constant Field Values

debugExtraCheckSymmetry

private static final boolean debugExtraCheckSymmetry
Debug flag, to double-check all write operations.

See Also:
Constant Field Values

DISTANCE_ID

public static final OptionID DISTANCE_ID
OptionID for DISTANCE_PARAM


FLOAT_SIZE

private static final int FLOAT_SIZE
Storage size: 4 bytes floats

See Also:
Constant Field Values

DISTANCE_PARAM

private final ObjectParameter<DistanceFunction<O extends DatabaseObject,D extends NumberDistance<D,N>>> DISTANCE_PARAM
Parameter that specifies the name of the directory to be re-parsed.

Key: -loader.distance


databaseConnection

private DatabaseConnection<O extends DatabaseObject> databaseConnection
Holds the database connection to have the algorithm run with.


distance

private DistanceFunction<O extends DatabaseObject,D extends NumberDistance<D,N>> distance
Distance function that is to be cached.


out

private File out
Output file.

Constructor Detail

CacheFloatDistanceInOnDiskMatrix

public CacheFloatDistanceInOnDiskMatrix(Parameterization config)
Constructor, adhering to Parameterizable

Parameters:
config - Parameterization
Method Detail

run

public void run()
Description copied from class: AbstractApplication
Runs the application.

Specified by:
run in class AbstractApplication

main

public static void main(String[] args)
Main method, delegate to super class.

Parameters:
args - Command line arguments

Release 0.3 (2010-03-31_1612)