@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(DatabaseConnection databaseConnection)
Constructor with no indexes.
|
StaticArrayDatabase(DatabaseConnection databaseConnection,
java.util.Collection<? extends 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, getSimilarityRangeQuery, 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, java.util.Collection<? extends IndexFactory<?>> indexFactories)
databaseConnection
- Database connection to get the initial data from.indexFactories
- Indexes to addpublic StaticArrayDatabase(DatabaseConnection databaseConnection)
databaseConnection
- Database connection to get the initial data from.public void initialize()
protected Logging getLogger()
AbstractDatabase
getLogger
in class AbstractDatabase
Copyright © 2019 ELKI Development Team. License information.