| Modifier and Type | Class and Description |
|---|---|
class |
InMemoryKvTable.InMemoryKvTableScanner |
| Constructor and Description |
|---|
InMemoryKvTable() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
com.google.protobuf.ByteString |
delete(T key) |
boolean |
exists(T keyValue)
Cognate of
KvTable.lookup(Object, boolean), this function checks for the
presence of an entry with a specific key. |
int |
getKeyCnt() |
T |
getKeyFromKvStoreKey(com.mapr.fs.proto.Fileserver.KvStoreKey key) |
com.mapr.fs.proto.Fileserver.KvMsg |
getLeftNearValue(T key) |
com.mapr.fs.proto.Fileserver.KvStoreKey |
getMaxKey() |
com.mapr.fs.proto.Fileserver.KvStoreKey |
getMinKey() |
com.mapr.fs.proto.Fileserver.KvMsg |
getRightNearValue(T key) |
KvTableScanner |
getScanner(boolean keysOnly) |
KvTableScanner |
getScanner(T startKey,
boolean keysOnly) |
KvTableScanner |
getScanner(T startKey,
T endKey,
boolean keysOnly) |
com.google.protobuf.ByteString |
insert(T key,
com.google.protobuf.ByteString value) |
byte[] |
lookup(T keyValue,
boolean allowStaleRead) |
com.mapr.fs.proto.Fileserver.KvstoreLookupNearResponse |
lookupNear(T key) |
int |
open(java.lang.String name)
Initializes in-memory state of the table, such as setting key type (where
necessary).
|
void |
setType(int type) |
public int open(java.lang.String name)
KvTablepublic byte[] lookup(T keyValue, boolean allowStaleRead)
public boolean exists(T keyValue)
KvTableKvTable.lookup(Object, boolean), this function checks for the
presence of an entry with a specific key.public com.mapr.fs.proto.Fileserver.KvMsg getLeftNearValue(T key)
getLeftNearValue in interface KvTable<T>public com.mapr.fs.proto.Fileserver.KvMsg getRightNearValue(T key)
getRightNearValue in interface KvTable<T>public com.mapr.fs.proto.Fileserver.KvstoreLookupNearResponse lookupNear(T key) throws KvStoreException
lookupNear in interface KvTable<T>KvStoreExceptionpublic com.mapr.fs.proto.Fileserver.KvStoreKey getMinKey()
public com.mapr.fs.proto.Fileserver.KvStoreKey getMaxKey()
public T getKeyFromKvStoreKey(com.mapr.fs.proto.Fileserver.KvStoreKey key)
getKeyFromKvStoreKey in interface KvTable<T>public KvTableScanner getScanner(T startKey, T endKey, boolean keysOnly)
getScanner in interface KvTable<T>public KvTableScanner getScanner(T startKey, boolean keysOnly)
getScanner in interface KvTable<T>public KvTableScanner getScanner(boolean keysOnly)
getScanner in interface KvTable<T>public com.google.protobuf.ByteString insert(T key, com.google.protobuf.ByteString value)
public com.google.protobuf.ByteString delete(T key)