Package elki.database.datastore
General data store layer API (along the lines of
Map<DBID, T>
- use everywhere!) for ELKI.
When to use:
Every time you need to associate a larger number of objects (in form of
DBID
s) with any kind of value.
This can be temporary values such as KNN lists, but also result values such
as outlier scores.
Basically, DataStore<T> == Map<DBID, T>
. But this API will allow
extensions that can do on-disk maps.
How to use:
// Storage for the outlier score of each ID.
final WritableDoubleDataStore scores = DataStoreFactory.FACTORY.makeDoubleStorage(ids, DataStoreFactory.HINT_STATIC);
-
Interface Summary Interface Description DataStore<T> Generic storage interface for objects indexed byDBID
.DataStoreFactory API for a storage factory used for producing larger storage maps.DataStoreIDMap Interface to map DBIDs to integer record ids for use in storage.DataStoreListener Defines the interface for an object that listens to changes in aDataStore
.DBIDDataStore DBID-valued data store (avoids boxing/unboxing).DoubleDataStore Double-valued data store (avoids boxing/unboxing).IntegerDataStore Integer-valued data store (avoids boxing/unboxing).RecordStore Represents a storage which stores multiple values per object in a record fashion.WritableDataStore<T> Writable data store.WritableDBIDDataStore Data store specialized for doubles.WritableDoubleDataStore Data store specialized for doubles.WritableIntegerDataStore Data store specialized for doubles.WritableRecordStore Represents a storage which stores multiple values per object in a record fashion. -
Class Summary Class Description DataStoreEvent Encapsulates information describing changes, i.e. updates, insertions, and / or deletions in aDataStore
, and used to notify all subscribedDataStoreListener
of the change.DataStoreUtil Storage utility class.DataStoreUtil.AscendingByDoubleDataStore Sort objects by a double relationDataStoreUtil.AscendingByDoubleDataStoreAndId Sort objects by a double relationDataStoreUtil.AscendingByIntegerDataStore Sort objects by a integer relationDataStoreUtil.DescendingByDoubleDataStore Sort objects by a double relationDataStoreUtil.DescendingByDoubleDataStoreAndId Sort objects by a double relationDataStoreUtil.DescendingByIntegerDataStore Sort objects by a integer relation -
Exception Summary Exception Description ObjectNotFoundException Exception thrown when the requested object was not found in the database.