de.lmu.ifi.dbs.elki.database
Class ProxyDatabase

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.result.AbstractHierarchicalResult
      extended by de.lmu.ifi.dbs.elki.database.AbstractDatabase
          extended by de.lmu.ifi.dbs.elki.database.ProxyDatabase
All Implemented Interfaces:
Database, HierarchicalResult, Result

public class ProxyDatabase
extends AbstractDatabase

A proxy database to use e.g. for projections and partitions.


Field Summary
protected  DBIDView idrep
          Our DBID representation
protected  DBIDs ids
          Our DBIDs
private static Logging logger
          Logger class.
 
Fields inherited from class de.lmu.ifi.dbs.elki.database.AbstractDatabase
eventManager, INDEX_ID, indexes, indexFactories, relations
 
Constructor Summary
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.
 
Method Summary
 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. 
 
Methods inherited from class de.lmu.ifi.dbs.elki.database.AbstractDatabase
accumulateDataStoreEvents, addDataStoreListener, addIndex, flushDataStoreEvents, getBundle, getDistanceQuery, getIndexes, getKNNQuery, getLongName, getRangeQuery, getRelation, getRelations, getRKNNQuery, getShortName, getSimilarityQuery, removeDataStoreListener, removeIndex
 
Methods inherited from class de.lmu.ifi.dbs.elki.result.AbstractHierarchicalResult
addChildResult, getHierarchy, setHierarchy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.lmu.ifi.dbs.elki.result.HierarchicalResult
getHierarchy, setHierarchy
 

Field Detail

logger

private static final Logging logger
Logger class.


ids

protected final DBIDs ids
Our DBIDs


idrep

protected final DBIDView idrep
Our DBID representation

Constructor Detail

ProxyDatabase

public ProxyDatabase(DBIDs ids)
Constructor.

Parameters:
ids - DBIDs to use

ProxyDatabase

public ProxyDatabase(DBIDs ids,
                     Iterable<Relation<?>> relations)
Constructor.

Parameters:
ids - DBIDs to use
relations - Relations to contain

ProxyDatabase

public ProxyDatabase(DBIDs ids,
                     Relation<?>... relations)
Constructor.

Parameters:
ids - DBIDs to use
relations - Relations to contain

ProxyDatabase

public ProxyDatabase(DBIDs ids,
                     Database database)
Constructor, proxying all relations of an existing database.

Parameters:
ids - ids to proxy
database - Database to wrap
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.

size

@Deprecated
public int size()
Deprecated. 

Description copied from interface: Database
Returns the number of objects contained in this Database.

Returns:
the number of objects in this Database

getDBIDs

@Deprecated
public StaticDBIDs getDBIDs()
Deprecated. 

Description copied from interface: Database
Returns a list comprising all IDs currently in use. The list returned shall not be linked to any actual list possibly hold in the database implementation.

Returns:
a list comprising all IDs currently in use

getLogger

protected Logging getLogger()
Specified by:
getLogger in class AbstractDatabase

Release 0.4.0 (2011-09-20_1324)