|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.result.AbstractHierarchicalResult
de.lmu.ifi.dbs.elki.database.AbstractDatabase
de.lmu.ifi.dbs.elki.database.StaticArrayDatabase
@Description(value="Database using an in-memory hashtable and at least providing linear scans.") public class StaticArrayDatabase

This database class uses array-based storage and thus does not allow for dynamic insert, delete and update operations. However, array access is expected to be faster and use less memory.
| Nested Class Summary | |
|---|---|
static class |
StaticArrayDatabase.Parameterizer
Parameterization class. |
| Field Summary | |
|---|---|
protected DatabaseConnection |
databaseConnection
The data source we get the initial data from. |
private DBIDView |
idrep
The DBID representation we use |
private ArrayDBIDs |
ids
IDs of this database |
private static Logging |
logger
Our logger |
| Fields inherited from class de.lmu.ifi.dbs.elki.database.AbstractDatabase |
|---|
eventManager, INDEX_ID, indexes, indexFactories, relations |
| Constructor Summary | |
|---|---|
StaticArrayDatabase()
Constructor with no indexes. |
|
StaticArrayDatabase(DatabaseConnection databaseConnection,
Collection<IndexFactory<?,?>> indexFactories)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addIndex(Index index)
Add a new index to the database. |
private Relation<?> |
addNewRelation(SimpleTypeInformation<?> meta)
Add a new representation for the given meta. |
protected Relation<?>[] |
alignColumns(ObjectBundle pack)
Find a mapping from package columns to database columns, eventually adding new database columns when needed. |
protected int |
findDBIDColumn(ObjectBundle pack)
Find an DBID column. |
StaticDBIDs |
getDBIDs()
Deprecated. |
Collection<Index> |
getIndexes()
Collection of known indexes |
protected Logging |
getLogger()
|
void |
initialize()
Initialize the database by getting the initial data from the database connection. |
void |
removeIndex(Index index)
Remove a particular index |
int |
size()
Deprecated. |
| Methods inherited from class de.lmu.ifi.dbs.elki.database.AbstractDatabase |
|---|
accumulateDataStoreEvents, addDataStoreListener, flushDataStoreEvents, getBundle, getDistanceQuery, getKNNQuery, getLongName, getRangeQuery, getRelation, getRelations, getRKNNQuery, getShortName, getSimilarityQuery, removeDataStoreListener |
| Methods inherited from class de.lmu.ifi.dbs.elki.result.AbstractHierarchicalResult |
|---|
addChildResult, getHierarchy, setHierarchy |
| 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 |
|---|
accumulateDataStoreEvents, addDataStoreListener, flushDataStoreEvents, getBundle, getDistanceQuery, getKNNQuery, getRangeQuery, getRelation, getRelations, getRKNNQuery, getSimilarityQuery, removeDataStoreListener |
| Methods inherited from interface de.lmu.ifi.dbs.elki.result.HierarchicalResult |
|---|
getHierarchy, setHierarchy |
| Methods inherited from interface de.lmu.ifi.dbs.elki.result.Result |
|---|
getLongName, getShortName |
| Field Detail |
|---|
private static final Logging logger
private ArrayDBIDs ids
private DBIDView idrep
protected DatabaseConnection databaseConnection
| Constructor Detail |
|---|
public StaticArrayDatabase(DatabaseConnection databaseConnection,
Collection<IndexFactory<?,?>> indexFactories)
databaseConnection - Database connection to get the initial data from.indexFactories - Indexes to addpublic StaticArrayDatabase()
| Method Detail |
|---|
public void initialize()
initialize in interface Databasepublic void addIndex(Index index)
Database
addIndex in interface DatabaseaddIndex in class AbstractDatabaseindex - Index to addpublic Collection<Index> getIndexes()
Database
getIndexes in interface DatabasegetIndexes in class AbstractDatabasepublic void removeIndex(Index index)
Database
removeIndex in interface DatabaseremoveIndex in class AbstractDatabaseindex - Index to removeprotected int findDBIDColumn(ObjectBundle pack)
pack - Package to process
protected Relation<?>[] alignColumns(ObjectBundle pack)
pack - Package to process
private Relation<?> addNewRelation(SimpleTypeInformation<?> meta)
meta - meta data
@Deprecated public final int size()
Database
size in interface Database@Deprecated public StaticDBIDs getDBIDs()
Database
getDBIDs in interface Databaseprotected Logging getLogger()
getLogger in class AbstractDatabase
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||