Package elki.datasource
Class AbstractDatabaseConnection
- java.lang.Object
-
- elki.datasource.AbstractDatabaseConnection
-
- All Implemented Interfaces:
elki.datasource.DatabaseConnection
- Direct Known Subclasses:
ArrayAdapterDatabaseConnection,BundleDatabaseConnection,ConcatenateFilesDatabaseConnection,EmptyDatabaseConnection,ExternalIDJoinDatabaseConnection,InputStreamDatabaseConnection,LabelJoinDatabaseConnection,PresortedBlindJoinDatabaseConnection,RandomDoubleVectorDatabaseConnection
public abstract class AbstractDatabaseConnection extends java.lang.Object implements elki.datasource.DatabaseConnectionAbstract super class for all database connections. AbstractDatabaseConnection already provides the setting of the database according to parameters.- Since:
- 0.1
- Author:
- Elke Achtert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractDatabaseConnection.ParParameterization class.
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<? extends elki.datasource.filter.ObjectFilter>filtersThe filters to invokestatic java.lang.StringLABEL_CONCATENATIONA sign to separate components of a label.
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractDatabaseConnection(java.util.List<? extends elki.datasource.filter.ObjectFilter> filters)Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract elki.logging.LogginggetLogger()Get the logger for this database connection.protected elki.datasource.bundle.MultipleObjectsBundleinvokeBundleFilters(elki.datasource.bundle.MultipleObjectsBundle bundle)Transforms the specified list of objects and their labels into a list of objects and their associations.protected elki.datasource.bundle.BundleStreamSourceinvokeStreamFilters(elki.datasource.bundle.BundleStreamSource stream)Transforms the specified list of objects and their labels into a list of objects and their associations.
-
-
-
Field Detail
-
LABEL_CONCATENATION
public static final java.lang.String LABEL_CONCATENATION
A sign to separate components of a label.- See Also:
- Constant Field Values
-
filters
protected java.util.List<? extends elki.datasource.filter.ObjectFilter> filters
The filters to invoke
-
-
Method Detail
-
invokeBundleFilters
protected elki.datasource.bundle.MultipleObjectsBundle invokeBundleFilters(elki.datasource.bundle.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
-
invokeStreamFilters
protected elki.datasource.bundle.BundleStreamSource invokeStreamFilters(elki.datasource.bundle.BundleStreamSource stream)
Transforms the specified list of objects and their labels into a list of objects and their associations.- Parameters:
stream- the objects to process- Returns:
- processed objects
-
getLogger
protected abstract elki.logging.Logging getLogger()
Get the logger for this database connection.- Returns:
- Logger
-
-