Class IndexedRecordStorage
java.lang.Object
org.nustaq.reallive.server.storage.IndexedRecordStorage
- All Implemented Interfaces:
RealLiveStreamActor,RecordStorage,SafeRealLiveStreamActor,RecordPersistance
public class IndexedRecordStorage extends java.lang.Object implements RecordStorage
wraps a record storage and keeps a list of indices up-to-date by watching operations on the store
-
Constructor Summary
Constructors Constructor Description IndexedRecordStorage() -
Method Summary
Modifier and Type Method Description ClusterTableRecordMapping_loadMapping()RecordPersistance_put(java.lang.String key, Record value)void_saveMapping(ClusterTableRecordMapping mapping)voidaddIndex(StorageIndex s)<T> voidforEachWithSpore(org.nustaq.kontraktor.Spore<Record,T> spore)Recordget(java.lang.String key)HashIndexgetHashIndex(java.lang.String path)java.util.List<StorageIndex>getIndices()RemoveLoggetRemoveLog()StorageStatsgetStats()RecordStoragegetWrapped()voidinitializeFromRecord(Record value)RecordStorageput(java.lang.String key, Record value)Recordremove(java.lang.String key)voidresizeIfLoadFactorLarger(double loadFactor, long maxGrow)longsize()java.util.stream.Stream<Record>stream()IndexedRecordStoragewrapped(RecordStorage r)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, map, query
-
Constructor Details
-
IndexedRecordStorage
public IndexedRecordStorage()
-
-
Method Details
-
wrapped
-
getWrapped
-
getIndices
-
addIndex
-
put
- Specified by:
putin interfaceRecordPersistance- Specified by:
putin interfaceRecordStorage
-
_put
- Specified by:
_putin interfaceRecordPersistance
-
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
-