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
- TIOError
AuthFailure
org.apache.thrift.TException
TItem getItem(KeyPair kp, ByteBuffer key) throws TIOError, AuthExpire, org.apache.thrift.TException
kp
- key
- TIOError
AuthExpire
org.apache.thrift.TException
Map<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
- TIOError
AuthExpire
org.apache.thrift.TException
Map<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
- TIOError
TIllegalArgument
AuthExpire
org.apache.thrift.TException
void 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 putTIOError
AuthExpire
org.apache.thrift.TException
void deleteItem(KeyPair kp, ByteBuffer key) throws TIOError, AuthExpire, org.apache.thrift.TException
kp
- the key to deletekey
- TIOError
AuthExpire
org.apache.thrift.TException
Map<String,TItem> rget(KeyPair kp, ByteBuffer startKey, ByteBuffer stopKey, int count) throws TIOError, AuthExpire, org.apache.thrift.TException
kp
- startKey
- stopKey
- count
- TIOError
AuthExpire
org.apache.thrift.TException
Map<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
- TIOError
AuthExpire
org.apache.thrift.TException
void rdel(KeyPair kp, ByteBuffer startKey, ByteBuffer stopKey, int count) throws TIOError, AuthExpire, org.apache.thrift.TException
kp
- startKey
- stopKey
- count
- TIOError
AuthExpire
org.apache.thrift.TException
Copyright © 2016. All rights reserved.