Class IndexedRecordStorage
java.lang.Object
org.nustaq.reallive.server.storage.IndexedRecordStorage
- All Implemented Interfaces:
RealLiveStreamActor,RecordStorage,SafeRealLiveStreamActor,RecordPersistance
wraps a record storage and keeps a list of indices up-to-date by watching operations on the store
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoes not update lastmodified timestampvoid_saveMapping(ClusterTableRecordMapping mapping) void<T> voidforEachWithSpore(org.nustaq.kontraktor.Spore<Record, T> spore) getHashIndex(String path) getStats()voidinitializeFromRecord(Record value) voidresizeIfLoadFactorLarger(double loadFactor, long maxGrow) longsize()stream()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.nustaq.reallive.api.RealLiveStreamActor
forEach, forEach, listByQuery, map, query
-
Constructor Details
-
IndexedRecordStorage
public IndexedRecordStorage()
-
-
Method Details
-
wrapped
-
getWrapped
-
getIndices
-
addIndex
-
put
- Specified by:
putin interfaceRecordPersistance- Specified by:
putin interfaceRecordStorage
-
_rawPut
Description copied from interface:RecordPersistancedoes not update lastmodified timestamp- Specified by:
_rawPutin interfaceRecordPersistance- Returns:
-
initializeFromRecord
-
get
- Specified by:
getin interfaceRecordStorage
-
remove
- Specified by:
removein interfaceRecordPersistance- Specified by:
removein interfaceRecordStorage
-
size
public long size()- Specified by:
sizein interfaceRecordStorage
-
getStats
- Specified by:
getStatsin interfaceRecordPersistance- Specified by:
getStatsin interfaceRecordStorage
-
stream
- Specified by:
streamin interfaceRecordStorage
-
resizeIfLoadFactorLarger
public void resizeIfLoadFactorLarger(double loadFactor, long maxGrow) - Specified by:
resizeIfLoadFactorLargerin interfaceRecordPersistance- Specified by:
resizeIfLoadFactorLargerin interfaceRecordStorage
-
getRemoveLog
- Specified by:
getRemoveLogin interfaceRecordPersistance
-
forEachWithSpore
- Specified by:
forEachWithSporein interfaceRealLiveStreamActor- Specified by:
forEachWithSporein interfaceRecordPersistance
-
getHashIndex
-
_saveMapping
- Specified by:
_saveMappingin interfaceRecordPersistance
-
_loadMapping
- Specified by:
_loadMappingin interfaceRecordPersistance
-