| Constructor and Description |
|---|
KvStore(KvStoreClient clnt)
Deprecated.
|
KvStore(KvStoreClient clnt,
com.mapr.fs.proto.Security.CredentialsMsg creds) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
exists(T keyValue)
Cognate of
KvTable.lookup(Object, boolean), this function checks for the
presence of an entry with a specific key. |
com.mapr.fs.proto.Common.FidMsg |
getFid() |
int |
getKeyCnt() |
T |
getKeyFromKvStoreKey(com.mapr.fs.proto.Fileserver.KvStoreKey key) |
com.mapr.fs.proto.Fileserver.KvMsg |
getLeftNearValue(T key)
Get the value corresponding to the key that is either less or equal to the
key specified as the argument.
|
com.mapr.fs.proto.Fileserver.KvStoreKey |
getMaxKey() |
com.mapr.fs.proto.Fileserver.KvStoreKey |
getMinKey() |
long |
getNBlocks() |
com.mapr.fs.proto.Fileserver.KvMsg |
getRightNearValue(T key)
Get the value corresponding to the key that is greater than the key
specified as the argument.
|
Scanner |
getScanner(boolean keysOnly) |
Scanner |
getScanner(com.mapr.fs.proto.Fileserver.KvStoreKey startKey,
com.mapr.fs.proto.Fileserver.KvStoreKey endKey,
boolean keysOnly) |
Scanner |
getScanner(T startKey,
boolean keysOnly) |
Scanner |
getScanner(T startKey,
T endKey,
boolean keysOnly) |
java.lang.String |
getTableName() |
static com.mapr.fs.proto.Common.FSKeyType |
gettype(KvStoreClient clnt,
java.lang.String name) |
byte[] |
lookup(T keyValue) |
byte[] |
lookup(T keyValue,
boolean allowStaleRead) |
com.mapr.fs.proto.Fileserver.KvstoreLookupNearResponse |
lookupNear(T key)
Fetch values of keys that are adjacent to a specific key.
|
int |
open(java.lang.String name)
Initializes in-memory state of the table, such as setting key type (where
necessary).
|
com.mapr.fs.proto.Fileserver.KvStoreKey |
parseKvStoreKey(java.lang.String keyString) |
void |
printKey(com.mapr.fs.proto.Fileserver.KvStoreKey key) |
static java.lang.String |
setThreadName(com.mapr.fs.proto.Fileserver.FSProg prog,
com.mapr.fs.proto.Common.FidMsg fid) |
void |
setType(int type) |
@Deprecated public KvStore(KvStoreClient clnt)
public KvStore(KvStoreClient clnt, com.mapr.fs.proto.Security.CredentialsMsg creds)
public com.mapr.fs.proto.Common.FidMsg getFid()
public int open(java.lang.String name)
KvTablepublic java.lang.String getTableName()
public byte[] lookup(T keyValue)
public byte[] lookup(T keyValue, boolean allowStaleRead)
public static java.lang.String setThreadName(com.mapr.fs.proto.Fileserver.FSProg prog,
com.mapr.fs.proto.Common.FidMsg fid)
public com.mapr.fs.proto.Fileserver.KvMsg getLeftNearValue(T key)
getLeftNearValue in interface KvTable<T>key - value of the key being looked up.public com.mapr.fs.proto.Fileserver.KvMsg getRightNearValue(T key)
getRightNearValue in interface KvTable<T>key - value of the key being looked up.public com.mapr.fs.proto.Fileserver.KvstoreLookupNearResponse lookupNear(T key) throws KvStoreException
lookupNear in interface KvTable<T>key - KvStoreExceptionpublic com.mapr.fs.proto.Fileserver.KvStoreKey getMinKey()
public com.mapr.fs.proto.Fileserver.KvStoreKey getMaxKey()
public long getNBlocks()
public boolean exists(T keyValue)
KvTableKvTable.lookup(Object, boolean), this function checks for the
presence of an entry with a specific key.public T getKeyFromKvStoreKey(com.mapr.fs.proto.Fileserver.KvStoreKey key)
getKeyFromKvStoreKey in interface KvTable<T>public com.mapr.fs.proto.Fileserver.KvStoreKey parseKvStoreKey(java.lang.String keyString)
public Scanner getScanner(com.mapr.fs.proto.Fileserver.KvStoreKey startKey, com.mapr.fs.proto.Fileserver.KvStoreKey endKey, boolean keysOnly)
public Scanner getScanner(T startKey, T endKey, boolean keysOnly)
getScanner in interface KvTable<T>public Scanner getScanner(T startKey, boolean keysOnly)
getScanner in interface KvTable<T>public Scanner getScanner(boolean keysOnly)
getScanner in interface KvTable<T>public void printKey(com.mapr.fs.proto.Fileserver.KvStoreKey key)
public static com.mapr.fs.proto.Common.FSKeyType gettype(KvStoreClient clnt, java.lang.String name)