public static interface TKvdbService.Iface
| 限定符和类型 | 方法和说明 |
|---|---|
KeyPair |
auth(KeyPair kp)
Method for Authorization.
|
void |
deleteItem(KeyPair kp,
ByteBuffer key)
Delete a Item.
|
TItem |
getItem(KeyPair kp,
ByteBuffer key)
Method for getting item.
|
Map<String,TItem> |
getItems(KeyPair kp,
List<ByteBuffer> keys)
Method for getting multiple items.
|
Map<String,TItem> |
getItemsByPrefix(KeyPair kp,
ByteBuffer prefix,
int count)
Method for getting multiple items.
|
Map<String,TItem> |
prkget(KeyPair kp,
ByteBuffer prefixKey,
int count,
boolean isContainValue,
ByteBuffer compareKey)
range search
|
void |
rdel(KeyPair kp,
ByteBuffer startKey,
ByteBuffer stopKey,
int count)
range delete(only java)
|
Map<String,TItem> |
rget(KeyPair kp,
ByteBuffer startKey,
ByteBuffer stopKey,
int count)
delete range data(only java)
|
void |
setItem(KeyPair kp,
ByteBuffer key,
TItem item)
Set a Item to Kvdb.
|
KeyPair auth(KeyPair kp) throws TIOError, AuthFailure, org.apache.thrift.TException
kp - TIOErrorAuthFailureorg.apache.thrift.TExceptionTItem getItem(KeyPair kp, ByteBuffer key) throws TIOError, AuthExpire, org.apache.thrift.TException
kp - key - TIOErrorAuthExpireorg.apache.thrift.TExceptionMap<String,TItem> getItems(KeyPair kp, List<ByteBuffer> keys) throws TIOError, AuthExpire, org.apache.thrift.TException
kp - a list of keys to fetch, the Item list
will have the Results at corresponding positions
or null if there was an errorkeys - TIOErrorAuthExpireorg.apache.thrift.TExceptionMap<String,TItem> getItemsByPrefix(KeyPair kp, ByteBuffer prefix, int count) throws TIOError, TIllegalArgument, AuthExpire, org.apache.thrift.TException
kp - Key prefix to fetch, the Item listprefix - count - TIOErrorTIllegalArgumentAuthExpireorg.apache.thrift.TExceptionvoid setItem(KeyPair kp, ByteBuffer key, TItem item) throws TIOError, AuthExpire, org.apache.thrift.TException
kp - the key to set data inkey - item - the TPut to putTIOErrorAuthExpireorg.apache.thrift.TExceptionvoid deleteItem(KeyPair kp, ByteBuffer key) throws TIOError, AuthExpire, org.apache.thrift.TException
kp - the key to deletekey - TIOErrorAuthExpireorg.apache.thrift.TExceptionMap<String,TItem> rget(KeyPair kp, ByteBuffer startKey, ByteBuffer stopKey, int count) throws TIOError, AuthExpire, org.apache.thrift.TException
kp - startKey - stopKey - count - TIOErrorAuthExpireorg.apache.thrift.TExceptionMap<String,TItem> prkget(KeyPair kp, ByteBuffer prefixKey, int count, boolean isContainValue, ByteBuffer compareKey) throws TIOError, AuthExpire, org.apache.thrift.TException
kp - prefixKey - count - isContainValue - compareKey - TIOErrorAuthExpireorg.apache.thrift.TExceptionvoid rdel(KeyPair kp, ByteBuffer startKey, ByteBuffer stopKey, int count) throws TIOError, AuthExpire, org.apache.thrift.TException
kp - startKey - stopKey - count - TIOErrorAuthExpireorg.apache.thrift.TExceptionCopyright © 2016. All rights reserved.