Package de.lmu.ifi.dbs.elki.database.datastore

General data store layer API (along the lines of Map<DBID, T> - use everywhere!)

See: Description


Package de.lmu.ifi.dbs.elki.database.datastore Description

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 DBIDs) 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);
 
ELKI Version 0.7.0

Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.