de.lmu.ifi.dbs.elki.database.connection
Class FileBasedDatabaseConnection<O extends DatabaseObject>
java.lang.Object
de.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable
de.lmu.ifi.dbs.elki.database.connection.AbstractDatabaseConnection<O>
de.lmu.ifi.dbs.elki.database.connection.InputStreamDatabaseConnection<O>
de.lmu.ifi.dbs.elki.database.connection.FileBasedDatabaseConnection<O>
- All Implemented Interfaces:
- DatabaseConnection<O>, Loggable, Parameterizable
public class FileBasedDatabaseConnection<O extends DatabaseObject>
- extends InputStreamDatabaseConnection<O>
Provides a file based database connection based on the parser to be set.
- Author:
- Arthur Zimek
Fields inherited from class de.lmu.ifi.dbs.elki.database.connection.AbstractDatabaseConnection |
CLASS_LABEL_CLASS_D, CLASS_LABEL_CLASS_P, CLASS_LABEL_INDEX_D, CLASS_LABEL_INDEX_P, classLabelIndex, database, DATABASE_ID, EXTERNAL_ID_INDEX_D, EXTERNAL_ID_INDEX_P, forceExternalID, LABEL_CONCATENATION |
Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable |
addOption, checkGlobalParameterConstraints, deleteOption, description, description, getParameters, getParameterValue, getPossibleOptions, inlineDescription, isSet, setParameters |
Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
debugFine, debugFiner, debugFinest, exception, message, progress, progress, progress, verbose, verbose, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INPUT_P
public static final String INPUT_P
- Label for parameter input.
- See Also:
- Constant Field Values
INPUT_D
public static final String INPUT_D
- Description for parameter input.
- See Also:
- Constant Field Values
FileBasedDatabaseConnection
public FileBasedDatabaseConnection()
- Provides a file based database connection based on the parser to be set.
setParameters
public String[] setParameters(String[] args)
throws ParameterException
- Description copied from interface:
Parameterizable
- Sets the attributes of the class accordingly to the given parameters.
Returns a new String array containing those entries of the
given array that are neither expected nor used by this
Parameterizable.
- Specified by:
setParameters
in interface Parameterizable
- Overrides:
setParameters
in class InputStreamDatabaseConnection<O extends DatabaseObject>
- Parameters:
args
- parameters to set the attributes accordingly to
- Returns:
- String[] an array containing the unused parameters
- Throws:
ParameterException
- in case of wrong parameter-setting- See Also:
Parameterizable.setParameters(java.lang.String[])