Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.database.connection
Class EmptyDatabaseConnection<O extends DatabaseObject>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.logging.AbstractLoggable
      extended by de.lmu.ifi.dbs.elki.database.connection.AbstractDatabaseConnection<O>
          extended by de.lmu.ifi.dbs.elki.database.connection.EmptyDatabaseConnection<O>
Type Parameters:
O - Object type
All Implemented Interfaces:
DatabaseConnection<O>, Parameterizable

@Title(value="Empty Database")
@Description(value="Dummy database implementation that cannot not contain any objects.")
public class EmptyDatabaseConnection<O extends DatabaseObject>
extends AbstractDatabaseConnection<O>
implements Parameterizable

Pseudo database that is empty. Ugly hack.

Author:
Erich Schubert

Field Summary
 
Fields inherited from class de.lmu.ifi.dbs.elki.database.connection.AbstractDatabaseConnection
CLASS_LABEL_CLASS_ID, CLASS_LABEL_INDEX_ID, classLabelIndex, database, DATABASE_ID, EXTERNAL_ID_INDEX_ID, LABEL_CONCATENATION
 
Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable
debug, logger
 
Constructor Summary
EmptyDatabaseConnection(Parameterization config)
          Constructor.
 
Method Summary
 Database<O> getDatabase(Normalization<O> normalization)
          Returns a Database according to parameter settings.
 
Methods inherited from class de.lmu.ifi.dbs.elki.database.connection.AbstractDatabaseConnection
normalizeAndTransformLabels
 
Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable
debugFine, debugFiner, debugFinest, exception, progress, verbose, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyDatabaseConnection

public EmptyDatabaseConnection(Parameterization config)
Constructor.

Parameters:
config - Configuration
Method Detail

getDatabase

public Database<O> getDatabase(Normalization<O> normalization)
Description copied from interface: DatabaseConnection
Returns a Database according to parameter settings.

Specified by:
getDatabase in interface DatabaseConnection<O extends DatabaseObject>
Parameters:
normalization - ignored for an empty database.
Returns:
a Database according to parameter settings

Release 0.3 (2010-03-31_1612)