public class ProxyDatabase extends AbstractDatabase
AbstractDatabase.Parameterizer
Modifier and Type | Field and Description |
---|---|
protected DBIDView |
idrep
Our DBID representation
|
private static Logging |
LOG
Logger class.
|
eventManager, indexes, indexFactories, relations
Constructor and Description |
---|
ProxyDatabase(DBIDs ids)
Constructor.
|
ProxyDatabase(DBIDs ids,
Database database)
Constructor, proxying all relations of an existing database.
|
ProxyDatabase(DBIDs ids,
Iterable<Relation<?>> relations)
Constructor.
|
ProxyDatabase(DBIDs ids,
Relation<?>... relations)
Constructor.
|
Modifier and Type | Method and 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.
|
accumulateDataStoreEvents, addDataStoreListener, addIndex, flushDataStoreEvents, getBundle, getDistanceQuery, getIndexes, getKNNQuery, getLongName, getRangeQuery, getRelation, getRelations, getRKNNQuery, getShortName, getSimilarityQuery, removeDataStoreListener, removeIndex
addChildResult, getHierarchy, setHierarchy
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHierarchy, setHierarchy
private static final Logging LOG
protected DBIDView idrep
public ProxyDatabase(DBIDs ids)
ids
- DBIDs to usepublic ProxyDatabase(DBIDs ids, Iterable<Relation<?>> relations)
ids
- DBIDs to userelations
- Relations to containpublic ProxyDatabase(DBIDs ids, Relation<?>... relations)
ids
- DBIDs to userelations
- Relations to containpublic void initialize()
Database
public void addRelation(Relation<?> relation)
relation
- Representation to add.protected Logging getLogger()
AbstractDatabase
getLogger
in class AbstractDatabase
public void setDBIDs(DBIDs ids)
ids
- DBIDs to use