|
|
|||||||||||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable
de.lmu.ifi.dbs.elki.application.AbstractApplication
de.lmu.ifi.dbs.elki.application.cache.CacheDoubleDistanceInOnDiskMatrix<O,N,D>
public class CacheDoubleDistanceInOnDiskMatrix<O extends DatabaseObject,N extends NumberDistance<N,D>,D extends Number>
Wrapper to convert a traditional text-serialized result into a on-disk matrix for random access.
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 ClassParameter<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,N> |
distance
Distance function that is to be cached. |
static OptionID |
DISTANCE_ID
OptionID for DISTANCE_PARAM |
private ClassParameter<DistanceFunction<O,N>> |
DISTANCE_PARAM
Parameter that specifies the name of the directory to be re-parsed. |
Fields inherited from class de.lmu.ifi.dbs.elki.application.AbstractApplication |
---|
INFORMATION |
Fields inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable |
---|
optionHandler |
Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
---|
debug, logger |
Constructor Summary | |
---|---|
CacheDoubleDistanceInOnDiskMatrix()
Constructor. |
Method Summary | |
---|---|
static void |
main(String[] args)
Main method, delegate to super class. |
void |
run()
Runs the application. |
List<String> |
setParameters(List<String> args)
Grabs all specified options from the option handler. |
Methods inherited from class de.lmu.ifi.dbs.elki.application.AbstractApplication |
---|
getRemainingParameters, isVerbose, runCLIApplication, usage |
Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable |
---|
addOption, addParameterizable, addParameterizable, checkGlobalParameterConstraints, collectOptions, getAttributeSettings, getParameters, rememberParametersExcept, removeOption, removeParameterizable, shortDescription |
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 |
---|
private final ClassParameter<DatabaseConnection<O extends DatabaseObject>> DATABASE_CONNECTION_PARAM
DatabaseConnection
.
Key: -dbc
Default value: FileBasedDatabaseConnection
public static final OptionID CACHE_ID
CACHE_PARAM
private final FileParameter CACHE_PARAM
Key: -loader.diskcache
private static final boolean debugExtraCheckWrites
private static final boolean debugExtraCheckSymmetry
public static final OptionID DISTANCE_ID
DISTANCE_PARAM
private final ClassParameter<DistanceFunction<O extends DatabaseObject,N extends NumberDistance<N,D>>> DISTANCE_PARAM
Key: -loader.distance
private DatabaseConnection<O extends DatabaseObject> databaseConnection
private DistanceFunction<O extends DatabaseObject,N extends NumberDistance<N,D>> distance
Constructor Detail |
---|
public CacheDoubleDistanceInOnDiskMatrix()
Method Detail |
---|
public void run()
AbstractApplication
run
in class AbstractApplication
public List<String> setParameters(List<String> args) throws ParameterException
AbstractParameterizable
{ ListremainingParameters = super.setParameters(args); // set parameters for your class // for example like this: if(isSet(MY_PARAM_VALUE_PARAM)) { myParamValue = getParameterValue(MY_PARAM_VALUE_PARAM); } . . . return remainingParameters; // or in case of attributes requesting parameters themselves // return parameterizableAttribbute.setParameters(remainingParameters); }
setParameters
in interface Parameterizable
setParameters
in class AbstractApplication
args
- parameters to set the attributes accordingly to
ParameterException
- in case of wrong parameter-settingpublic static void main(String[] args)
args
-
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |