de.lmu.ifi.dbs.elki.database
Class IndexDatabase<O extends DatabaseObject>
java.lang.Object
de.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable
de.lmu.ifi.dbs.elki.database.AbstractDatabase<O>
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
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, getObjects, insert, insert, isSet, isSetForAllObjects, isSetGlobally, iterator, partition, partition, randomSample, removeDatabaseListener, restoreID, setAssociations, setNewID, size |
Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable |
addOption, addParameterizable, addParameterizable, checkGlobalParameterConstraints, collectOptions, getAttributeSettings, getParameters, rememberParametersExcept, removeOption, removeParameterizable, setParameters, shortDescription |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IndexDatabase
public IndexDatabase()
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