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

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.datasource.AbstractDatabaseConnection
All Implemented Interfaces:
DatabaseConnection, InspectionUtilFrequentlyScanned, Parameterizable
Direct Known Subclasses:
EmptyDatabaseConnection, ExternalIDJoinDatabaseConnection, InputStreamDatabaseConnection, LabelJoinDatabaseConnection, RandomDoubleVectorDatabaseConnection

public abstract class AbstractDatabaseConnection
extends Object
implements DatabaseConnection

Abstract super class for all database connections. AbstractDatabaseConnection already provides the setting of the database according to parameters.


Nested Class Summary
static class AbstractDatabaseConnection.Parameterizer
          Parameterization class.
 
Field Summary
protected  List<ObjectFilter> filters
          The filters to invoke
static OptionID FILTERS_ID
          Filters to apply to the input data.
static String LABEL_CONCATENATION
          A sign to separate components of a label.
 
Constructor Summary
protected AbstractDatabaseConnection(List<ObjectFilter> filters)
          Constructor.
 
Method Summary
protected abstract  Logging getLogger()
          Get the logger for this database connection.
protected  MultipleObjectsBundle invokeFilters(MultipleObjectsBundle bundle)
          Transforms the specified list of objects and their labels into a list of objects and their associations.
 
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.datasource.DatabaseConnection
loadData
 

Field Detail

LABEL_CONCATENATION

public static final String LABEL_CONCATENATION
A sign to separate components of a label.

See Also:
Constant Field Values

FILTERS_ID

public static final OptionID FILTERS_ID
Filters to apply to the input data.

Key: -dbc.filter


filters

protected List<ObjectFilter> filters
The filters to invoke

Constructor Detail

AbstractDatabaseConnection

protected AbstractDatabaseConnection(List<ObjectFilter> filters)
Constructor.

Parameters:
filters - Filters to apply, can be null
Method Detail

invokeFilters

protected MultipleObjectsBundle invokeFilters(MultipleObjectsBundle bundle)
Transforms the specified list of objects and their labels into a list of objects and their associations.

Parameters:
bundle - the objects to process
Returns:
processed objects

getLogger

protected abstract Logging getLogger()
Get the logger for this database connection.

Returns:
Logger

Release 0.4.0 (2011-09-20_1324)