de.lmu.ifi.dbs.elki.datasource
Class FileBasedDatabaseConnection

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.datasource.AbstractDatabaseConnection
      extended by de.lmu.ifi.dbs.elki.datasource.InputStreamDatabaseConnection
          extended by de.lmu.ifi.dbs.elki.datasource.FileBasedDatabaseConnection
All Implemented Interfaces:
DatabaseConnection, InspectionUtilFrequentlyScanned, Parameterizable

public class FileBasedDatabaseConnection
extends InputStreamDatabaseConnection

Provides a file based database connection based on the parser to be set.


Nested Class Summary
static class FileBasedDatabaseConnection.Parameterizer
          Parameterization class.
 
Field Summary
static OptionID INPUT_ID
          Parameter that specifies the name of the input file to be parsed.
 
Fields inherited from class de.lmu.ifi.dbs.elki.datasource.InputStreamDatabaseConnection
in, parser, PARSER_ID
 
Fields inherited from class de.lmu.ifi.dbs.elki.datasource.AbstractDatabaseConnection
filters, FILTERS_ID, LABEL_CONCATENATION
 
Constructor Summary
FileBasedDatabaseConnection(List<ObjectFilter> filters, Parser parser, InputStream in)
          Constructor.
 
Method Summary
 
Methods inherited from class de.lmu.ifi.dbs.elki.datasource.InputStreamDatabaseConnection
getLogger, loadData
 
Methods inherited from class de.lmu.ifi.dbs.elki.datasource.AbstractDatabaseConnection
invokeFilters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INPUT_ID

public static final OptionID INPUT_ID
Parameter that specifies the name of the input file to be parsed.

Key: -dbc.in

Constructor Detail

FileBasedDatabaseConnection

public FileBasedDatabaseConnection(List<ObjectFilter> filters,
                                   Parser parser,
                                   InputStream in)
Constructor.

Parameters:
filters - Filters, can be null
parser - the parser to provide a database
in - the input stream to parse from.

Release 0.4.0 (2011-09-20_1324)