Package elki.database
Class ProxyDatabase
- java.lang.Object
-
- elki.database.AbstractDatabase
-
- elki.database.ProxyDatabase
-
- All Implemented Interfaces:
Database
public class ProxyDatabase extends AbstractDatabase
A proxy database to use, e.g., for projections and partitions.- Since:
- 0.4.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class elki.database.AbstractDatabase
AbstractDatabase.Par
-
-
Field Summary
Fields Modifier and Type Field Description protected DBIDView
idrep
Our DBID representationprivate static Logging
LOG
Logger class.-
Fields inherited from class elki.database.AbstractDatabase
eventManager, indexFactories, relations
-
-
Constructor Summary
Constructors Constructor Description ProxyDatabase(DBIDs ids)
Constructor.ProxyDatabase(DBIDs ids, Database database)
Constructor, proxying all relations of an existing database.ProxyDatabase(DBIDs ids, Relation<?>... relations)
Constructor.ProxyDatabase(DBIDs ids, java.lang.Iterable<Relation<?>> relations)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRelation(Relation<?> relation)
Add a new representation.protected Logging
getLogger()
Get the class logger.void
initialize()
Initialize the database, for example by loading the input data.void
setDBIDs(DBIDs ids)
Set the DBIDs to use.-
Methods inherited from class elki.database.AbstractDatabase
accumulateDataStoreEvents, addDataStoreListener, flushDataStoreEvents, getBundle, getLongName, getRelation, getRelations, getShortName, removeDataStoreListener
-
-
-
-
Constructor Detail
-
ProxyDatabase
public ProxyDatabase(DBIDs ids)
Constructor.- Parameters:
ids
- DBIDs to use
-
ProxyDatabase
public ProxyDatabase(DBIDs ids, java.lang.Iterable<Relation<?>> relations)
Constructor.- Parameters:
ids
- DBIDs to userelations
- Relations to contain
-
ProxyDatabase
public ProxyDatabase(DBIDs ids, Relation<?>... relations)
Constructor.- Parameters:
ids
- DBIDs to userelations
- Relations to contain
-
-
Method Detail
-
initialize
public void initialize()
Description copied from interface:Database
Initialize the database, for example by loading the input data. (Since this should NOT be done on construction time!)
-
addRelation
public void addRelation(Relation<?> relation)
Add a new representation.- Parameters:
relation
- Representation to add.
-
getLogger
protected Logging getLogger()
Description copied from class:AbstractDatabase
Get the class logger.- Specified by:
getLogger
in classAbstractDatabase
- Returns:
- Class logger
-
setDBIDs
public void setDBIDs(DBIDs ids)
Set the DBIDs to use.- Parameters:
ids
- DBIDs to use
-
-