public class OffHeapRecordStorage extends Object implements RecordStorage<String>
| 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 |
|---|---|
protected org.nustaq.offheap.FSTSerializedOffheapMap<String,Record<String>> |
createMemMap(int sizeMB,
int estimatedNumRecords,
int keyLen) |
protected org.nustaq.offheap.FSTSerializedOffheapMap<String,Record<String>> |
createPersistentMap(String tableFile,
int sizeMB,
int estimatedNumRecords,
int keyLen) |
<T> void |
forEach(org.nustaq.kontraktor.Spore<Record<String>,T> spore) |
Record<String> |
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<String> value) |
Record<String> |
remove(String key) |
long |
size() |
Stream<Record<String>> |
stream() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfilter, filterPP, 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<String>> createMemMap(int sizeMB, int estimatedNumRecords, int keyLen)
protected org.nustaq.offheap.FSTSerializedOffheapMap<String,Record<String>> createPersistentMap(String tableFile, int sizeMB, int estimatedNumRecords, int keyLen) throws Exception
Exceptionpublic StorageStats getStats()
getStats in interface RecordStorage<String>public RecordStorage put(String key, Record<String> value)
put in interface RecordStorage<String>public Record<String> remove(String key)
remove in interface RecordStorage<String>public long size()
size in interface RecordStorage<String>public Stream<Record<String>> stream()
stream in interface RecordStorage<String>public <T> void forEach(org.nustaq.kontraktor.Spore<Record<String>,T> spore)
forEach in interface RealLiveStreamActor<String>Copyright © 2016. All rights reserved.