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 |
logger
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.
|
StaticDBIDs |
getDBIDs()
Deprecated.
|
protected Logging |
getLogger() |
void |
initialize()
Initialize the database, for example by loading the input data.
|
int |
size()
Deprecated.
|
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 logger
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.@Deprecated public int size()
Database
@Deprecated public StaticDBIDs getDBIDs()
Database
protected Logging getLogger()
getLogger
in class AbstractDatabase