Package com.codingchili.core.storage
Class IndexedMapVolatile<Value extends Storable>
java.lang.Object
com.codingchili.core.storage.IndexedMap<Value>
com.codingchili.core.storage.IndexedMapVolatile<Value>
- All Implemented Interfaces:
AsyncStorage<Value>
A storage implementation that is local and indexed. Always use this when using queries.
The indexing is fully based on CQEngine. see http://github.com/npgall/cqengine
The db/collection is shared over multiple instances.
-
Field Summary
Fields inherited from class com.codingchili.core.storage.IndexedMap
context, db, FIELD_ID
-
Constructor Summary
ConstructorDescriptionIndexedMapVolatile(io.vertx.core.Promise<AsyncStorage<Value>> promise, StorageContext<Value> context)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addIndexesForAttribute(com.googlecode.cqengine.attribute.Attribute<Value,String> attribute)
Methods inherited from class com.codingchili.core.storage.IndexedMap
addIndex, clear, context, get, getAttribute, getDatabase, put, putIfAbsent, query, remove, setMapper, size, update, values
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.codingchili.core.storage.AsyncStorage
contains, query
-
Constructor Details
-
IndexedMapVolatile
public IndexedMapVolatile(io.vertx.core.Promise<AsyncStorage<Value>> promise, StorageContext<Value> context)
-
-
Method Details
-
addIndexesForAttribute
public void addIndexesForAttribute(com.googlecode.cqengine.attribute.Attribute<Value,String> attribute)- Specified by:
addIndexesForAttribute
in classIndexedMap<Value extends Storable>
- Parameters:
attribute
- the attribute to add an index for based on implementation.
-