Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.database.connection
Class FileBasedDatabaseConnection<O extends DatabaseObject>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.logging.AbstractLoggable
      extended by de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable
          extended by de.lmu.ifi.dbs.elki.database.connection.AbstractDatabaseConnection<O>
              extended by de.lmu.ifi.dbs.elki.database.connection.InputStreamDatabaseConnection<O>
                  extended by 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

Field Summary
static String INPUT_D
          Description for parameter input.
static String INPUT_P
          Label for parameter input.
 
Fields inherited from class de.lmu.ifi.dbs.elki.database.connection.InputStreamDatabaseConnection
DEFAULT_PARSER, in, parser, PARSER_D, PARSER_P
 
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
 
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
 
Fields inherited from interface de.lmu.ifi.dbs.elki.database.connection.DatabaseConnection
PROPERTY_DATABASE, PROPERTY_PARSER
 
Constructor Summary
FileBasedDatabaseConnection()
          Provides a file based database connection based on the parser to be set.
 
Method Summary
 String[] setParameters(String[] args)
          Sets the attributes of the class accordingly to the given parameters.
 
Methods inherited from class de.lmu.ifi.dbs.elki.database.connection.InputStreamDatabaseConnection
description, getAttributeSettings, getDatabase
 
Methods inherited from class de.lmu.ifi.dbs.elki.database.connection.AbstractDatabaseConnection
normalizeAndTransformLabels
 
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
 
Methods inherited from interface de.lmu.ifi.dbs.elki.utilities.optionhandling.Parameterizable
checkGlobalParameterConstraints, getParameters, getPossibleOptions, inlineDescription
 

Field Detail

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
Constructor Detail

FileBasedDatabaseConnection

public FileBasedDatabaseConnection()
Provides a file based database connection based on the parser to be set.

Method Detail

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[])

Release 0.1 (2008-07-10_1838)