Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

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

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.logging.AbstractLoggable
      extended by de.lmu.ifi.dbs.elki.database.AbstractDatabase<O>
          extended by de.lmu.ifi.dbs.elki.database.IndexDatabase<O>
Type Parameters:
O - the type of DatabaseObject as element of the database
All Implemented Interfaces:
Database<O>, Result, Parameterizable, Iterable<Integer>
Direct Known Subclasses:
MetricalIndexDatabase, SpatialIndexDatabase

public abstract class IndexDatabase<O extends DatabaseObject>
extends AbstractDatabase<O>

IndexDatabase is a database implementation which is supported by an index structure.

Author:
Elke Achtert

Field Summary
 
Fields inherited from class de.lmu.ifi.dbs.elki.database.AbstractDatabase
listenerList
 
Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable
debug, logger
 
Constructor Summary
IndexDatabase()
           
 
Method Summary
 O delete(Integer id)
          Calls the super method and afterwards deletes the specified object from the underlying index structure.
 void delete(O object)
          Calls the super method and afterwards deletes the specified object from the underlying index structure.
abstract  Index<O> getIndex()
          Returns the underlying index structure.
 long getLogicalPageAccess()
          Returns the logical page access of this database.
 long getPhysicalReadAccess()
          Returns the physical read access of this database.
 long getPhysicalWriteReadAccess()
          Returns the physical write access of this database.
 void resetPageAccess()
          Resets the page -access of this database.
 
Methods inherited from class de.lmu.ifi.dbs.elki.database.AbstractDatabase
addDatabaseListener, associate, associateGlobally, deleteAssociations, dimensionality, fireObjectInserted, fireObjectRemoved, fireObjectsChanged, fireObjectsInserted, fireObjectsRemoved, get, getAssociation, getAssociations, getGlobalAssociation, getIDs, getName, getObjects, getParameters, insert, insert, isSet, isSetForAllObjects, isSetGlobally, iterator, partition, partition, partition, randomSample, removeDatabaseListener, restoreID, setAssociations, setNewID, size
 
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
 
Methods inherited from interface de.lmu.ifi.dbs.elki.database.Database
bulkKNNQueryForID, kNNQueryForID, kNNQueryForObject, rangeQuery, rangeQuery, reverseKNNQuery
 

Constructor Detail

IndexDatabase

public IndexDatabase()
Method Detail

delete

public O delete(Integer id)
Calls the super method and afterwards deletes the specified object from the underlying index structure.

Specified by:
delete in interface Database<O extends DatabaseObject>
Overrides:
delete in class AbstractDatabase<O extends DatabaseObject>
Parameters:
id - the id of an object to be removed from the database
Returns:
the object that has been removed

delete

public void delete(O object)
Calls the super method and afterwards deletes the specified object from the underlying index structure.

Specified by:
delete in interface Database<O extends DatabaseObject>
Overrides:
delete in class AbstractDatabase<O extends DatabaseObject>
Parameters:
object - the object to be removed from database

getPhysicalReadAccess

public long getPhysicalReadAccess()
Returns the physical read access of this database.

Returns:
the physical read access of this database.

getPhysicalWriteReadAccess

public long getPhysicalWriteReadAccess()
Returns the physical write access of this database.

Returns:
the physical write access of this database.

getLogicalPageAccess

public long getLogicalPageAccess()
Returns the logical page access of this database.

Returns:
the logical page access of this database.

resetPageAccess

public void resetPageAccess()
Resets the page -access of this database.


getIndex

public abstract Index<O> getIndex()
Returns the underlying index structure.

Returns:
the underlying index structure

Release 0.3 (2010-03-31_1612)