public class OffHeapRecordStorage extends Object implements RecordStorage
| Modifier | Constructor and Description |
|---|---|
protected |
OffHeapRecordStorage() |
|
OffHeapRecordStorage(int maxKeyLen,
int sizeMB,
int estimatedNumRecords) |
|
OffHeapRecordStorage(String file,
int maxKeyLen,
int sizeMB,
int estimatedNumRecords) |
| Modifier and Type | Method and Description |
|---|---|
RecordStorage |
_put(String key,
Record value) |
protected org.nustaq.offheap.FSTSerializedOffheapMap<String,Record> |
createMemMap(int sizeMB,
int estimatedNumRecords,
int keyLen) |
protected org.nustaq.offheap.FSTSerializedOffheapMap<String,Record> |
createPersistentMap(String tableFile,
int sizeMB,
int estimatedNumRecords,
int keyLen) |
<T> void |
forEachWithSpore(org.nustaq.kontraktor.Spore<Record,T> spore) |
Record |
get(String key) |
StorageStats |
getStats() |
protected void |
init(String tableFile,
int sizeMB,
int estimatedNumRecords,
int keyLen,
boolean persist,
Class... toReg) |
RecordStorage |
put(String key,
Record value) |
Record |
remove(String key) |
void |
resizeIfLoadFactorLarger(double loadFactor,
long maxGrow) |
long |
size() |
java.util.stream.Stream<Record> |
stream() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, forEach, map, queryprotected OffHeapRecordStorage()
public OffHeapRecordStorage(int maxKeyLen,
int sizeMB,
int estimatedNumRecords)
public OffHeapRecordStorage(String file, int maxKeyLen, int sizeMB, int estimatedNumRecords)
protected void init(String tableFile, int sizeMB, int estimatedNumRecords, int keyLen, boolean persist, Class... toReg)
protected org.nustaq.offheap.FSTSerializedOffheapMap<String,Record> createMemMap(int sizeMB, int estimatedNumRecords, int keyLen)
protected org.nustaq.offheap.FSTSerializedOffheapMap<String,Record> createPersistentMap(String tableFile, int sizeMB, int estimatedNumRecords, int keyLen) throws Exception
Exceptionpublic StorageStats getStats()
getStats in interface RecordStoragepublic RecordStorage put(String key, Record value)
put in interface RecordStoragepublic RecordStorage _put(String key, Record value)
public Record get(String key)
get in interface RecordStoragepublic Record remove(String key)
remove in interface RecordStoragepublic long size()
size in interface RecordStoragepublic java.util.stream.Stream<Record> stream()
stream in interface RecordStoragepublic void resizeIfLoadFactorLarger(double loadFactor,
long maxGrow)
resizeIfLoadFactorLarger in interface RecordStoragepublic <T> void forEachWithSpore(org.nustaq.kontraktor.Spore<Record,T> spore)
forEachWithSpore in interface RealLiveStreamActorCopyright © 2019. All rights reserved.