Package elki.datasource
Class AbstractDatabaseConnection
- java.lang.Object
-
- elki.datasource.AbstractDatabaseConnection
-
- All Implemented Interfaces:
DatabaseConnection
- Direct Known Subclasses:
ArrayAdapterDatabaseConnection,BundleDatabaseConnection,ConcatenateFilesDatabaseConnection,EmptyDatabaseConnection,ExternalIDJoinDatabaseConnection,GeneratorXMLDatabaseConnection,InputStreamDatabaseConnection,LabelJoinDatabaseConnection,PresortedBlindJoinDatabaseConnection,RandomDoubleVectorDatabaseConnection
public abstract class AbstractDatabaseConnection extends java.lang.Object implements DatabaseConnection
Abstract 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 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 ObjectFilter> filters)Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract LogginggetLogger()Get the logger for this database connection.protected MultipleObjectsBundleinvokeBundleFilters(MultipleObjectsBundle bundle)Transforms the specified list of objects and their labels into a list of objects and their associations.protected BundleStreamSourceinvokeStreamFilters(BundleStreamSource stream)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 elki.datasource.DatabaseConnection
loadData
-
-
-
-
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 ObjectFilter> filters
The filters to invoke
-
-
Constructor Detail
-
AbstractDatabaseConnection
protected AbstractDatabaseConnection(java.util.List<? extends ObjectFilter> filters)
Constructor.- Parameters:
filters- Filters to apply, can be null
-
-
Method Detail
-
invokeBundleFilters
protected MultipleObjectsBundle invokeBundleFilters(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 BundleStreamSource invokeStreamFilters(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 Logging getLogger()
Get the logger for this database connection.- Returns:
- Logger
-
-