@Description(value="Database using an in-memory hashtable and at least providing linear scans.") public class StaticArrayDatabase extends AbstractDatabase
Modifier and Type | Class and Description |
---|---|
static class |
StaticArrayDatabase.Parameterizer
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
protected DatabaseConnection |
databaseConnection
The data source we get the initial data from.
|
private DBIDView |
idrep
The DBID representation we use
|
private ArrayStaticDBIDs |
ids
IDs of this database
|
private static Logging |
LOG
Our logger
|
eventManager, indexFactories, relations
Constructor and Description |
---|
StaticArrayDatabase()
Constructor with no indexes.
|
StaticArrayDatabase(DatabaseConnection databaseConnection,
Collection<IndexFactory<?,?>> indexFactories)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Logging |
getLogger()
Get the class logger.
|
void |
initialize()
Initialize the database by getting the initial data from the database
connection.
|
accumulateDataStoreEvents, addDataStoreListener, flushDataStoreEvents, getBundle, getDistanceQuery, getKNNQuery, getLongName, getRangeQuery, getRelation, getRelations, getRKNNQuery, getShortName, getSimilarityQuery, removeDataStoreListener
addChildResult, getHierarchy, setHierarchy
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHierarchy, setHierarchy
private static final Logging LOG
private ArrayStaticDBIDs ids
private DBIDView idrep
protected DatabaseConnection databaseConnection
public StaticArrayDatabase(DatabaseConnection databaseConnection, Collection<IndexFactory<?,?>> indexFactories)
databaseConnection
- Database connection to get the initial data from.indexFactories
- Indexes to addpublic StaticArrayDatabase()
public void initialize()
protected Logging getLogger()
AbstractDatabase
getLogger
in class AbstractDatabase
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.