public class ProxyDatabase extends AbstractDatabase
Modifier and Type | Field and Description |
---|---|
protected DBIDView |
idrep
Our DBID representation
|
protected DBIDs |
ids
Our DBIDs
|
private static Logging |
LOG
Logger class.
|
eventManager, INDEX_ID, 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() |
void |
initialize()
Initialize the database, for example by loading the input data.
|
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 final DBIDs ids
protected final 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()
getLogger
in class AbstractDatabase