public static class TKvdbService.Client extends org.apache.thrift.TServiceClient implements TKvdbService.Iface
| 限定符和类型 | 类和说明 |
|---|---|
static class |
TKvdbService.Client.Factory |
| 构造器和说明 |
|---|
TKvdbService.Client(org.apache.thrift.protocol.TProtocol prot) |
TKvdbService.Client(org.apache.thrift.protocol.TProtocol iprot,
org.apache.thrift.protocol.TProtocol oprot) |
| 限定符和类型 | 方法和说明 |
|---|---|
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)
|
KeyPair |
recv_auth() |
void |
recv_deleteItem() |
TItem |
recv_getItem() |
Map<String,TItem> |
recv_getItems() |
Map<String,TItem> |
recv_getItemsByPrefix() |
Map<String,TItem> |
recv_prkget() |
void |
recv_rdel() |
Map<String,TItem> |
recv_rget() |
void |
recv_setItem() |
Map<String,TItem> |
rget(KeyPair kp,
ByteBuffer startKey,
ByteBuffer stopKey,
int count)
delete range data(only java)
|
void |
send_auth(KeyPair kp) |
void |
send_deleteItem(KeyPair kp,
ByteBuffer key) |
void |
send_getItem(KeyPair kp,
ByteBuffer key) |
void |
send_getItems(KeyPair kp,
List<ByteBuffer> keys) |
void |
send_getItemsByPrefix(KeyPair kp,
ByteBuffer prefix,
int count) |
void |
send_prkget(KeyPair kp,
ByteBuffer prefixKey,
int count,
boolean isContainValue,
ByteBuffer compareKey) |
void |
send_rdel(KeyPair kp,
ByteBuffer startKey,
ByteBuffer stopKey,
int count) |
void |
send_rget(KeyPair kp,
ByteBuffer startKey,
ByteBuffer stopKey,
int count) |
void |
send_setItem(KeyPair kp,
ByteBuffer key,
TItem item) |
void |
setItem(KeyPair kp,
ByteBuffer key,
TItem item)
Set a Item to Kvdb.
|
public TKvdbService.Client(org.apache.thrift.protocol.TProtocol prot)
public TKvdbService.Client(org.apache.thrift.protocol.TProtocol iprot,
org.apache.thrift.protocol.TProtocol oprot)
public KeyPair auth(KeyPair kp) throws TIOError, AuthFailure, org.apache.thrift.TException
TKvdbService.Ifaceauth 在接口中 TKvdbService.IfaceTIOErrorAuthFailureorg.apache.thrift.TExceptionpublic void send_auth(KeyPair kp) throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic KeyPair recv_auth() throws TIOError, AuthFailure, org.apache.thrift.TException
TIOErrorAuthFailureorg.apache.thrift.TExceptionpublic TItem getItem(KeyPair kp, ByteBuffer key) throws TIOError, AuthExpire, org.apache.thrift.TException
TKvdbService.IfacegetItem 在接口中 TKvdbService.IfaceTIOErrorAuthExpireorg.apache.thrift.TExceptionpublic void send_getItem(KeyPair kp, ByteBuffer key) throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic TItem recv_getItem() throws TIOError, AuthExpire, org.apache.thrift.TException
TIOErrorAuthExpireorg.apache.thrift.TExceptionpublic Map<String,TItem> getItems(KeyPair kp, List<ByteBuffer> keys) throws TIOError, AuthExpire, org.apache.thrift.TException
TKvdbService.IfacegetItems 在接口中 TKvdbService.Ifacekp - a list of keys to fetch, the Item list
will have the Results at corresponding positions
or null if there was an errorTIOErrorAuthExpireorg.apache.thrift.TExceptionpublic void send_getItems(KeyPair kp, List<ByteBuffer> keys) throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic Map<String,TItem> recv_getItems() throws TIOError, AuthExpire, org.apache.thrift.TException
TIOErrorAuthExpireorg.apache.thrift.TExceptionpublic Map<String,TItem> getItemsByPrefix(KeyPair kp, ByteBuffer prefix, int count) throws TIOError, TIllegalArgument, AuthExpire, org.apache.thrift.TException
TKvdbService.IfacegetItemsByPrefix 在接口中 TKvdbService.Ifacekp - Key prefix to fetch, the Item listTIOErrorTIllegalArgumentAuthExpireorg.apache.thrift.TExceptionpublic void send_getItemsByPrefix(KeyPair kp, ByteBuffer prefix, int count) throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic Map<String,TItem> recv_getItemsByPrefix() throws TIOError, TIllegalArgument, AuthExpire, org.apache.thrift.TException
TIOErrorTIllegalArgumentAuthExpireorg.apache.thrift.TExceptionpublic void setItem(KeyPair kp, ByteBuffer key, TItem item) throws TIOError, AuthExpire, org.apache.thrift.TException
TKvdbService.IfacesetItem 在接口中 TKvdbService.Ifacekp - the key to set data initem - the TPut to putTIOErrorAuthExpireorg.apache.thrift.TExceptionpublic void send_setItem(KeyPair kp, ByteBuffer key, TItem item) throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic void recv_setItem()
throws TIOError,
AuthExpire,
org.apache.thrift.TException
TIOErrorAuthExpireorg.apache.thrift.TExceptionpublic void deleteItem(KeyPair kp, ByteBuffer key) throws TIOError, AuthExpire, org.apache.thrift.TException
TKvdbService.IfacedeleteItem 在接口中 TKvdbService.Ifacekp - the key to deleteTIOErrorAuthExpireorg.apache.thrift.TExceptionpublic void send_deleteItem(KeyPair kp, ByteBuffer key) throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic void recv_deleteItem()
throws TIOError,
AuthExpire,
org.apache.thrift.TException
TIOErrorAuthExpireorg.apache.thrift.TExceptionpublic Map<String,TItem> rget(KeyPair kp, ByteBuffer startKey, ByteBuffer stopKey, int count) throws TIOError, AuthExpire, org.apache.thrift.TException
TKvdbService.Ifacerget 在接口中 TKvdbService.IfaceTIOErrorAuthExpireorg.apache.thrift.TExceptionpublic void send_rget(KeyPair kp, ByteBuffer startKey, ByteBuffer stopKey, int count) throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic Map<String,TItem> recv_rget() throws TIOError, AuthExpire, org.apache.thrift.TException
TIOErrorAuthExpireorg.apache.thrift.TExceptionpublic Map<String,TItem> prkget(KeyPair kp, ByteBuffer prefixKey, int count, boolean isContainValue, ByteBuffer compareKey) throws TIOError, AuthExpire, org.apache.thrift.TException
TKvdbService.Ifaceprkget 在接口中 TKvdbService.IfaceTIOErrorAuthExpireorg.apache.thrift.TExceptionpublic void send_prkget(KeyPair kp, ByteBuffer prefixKey, int count, boolean isContainValue, ByteBuffer compareKey) throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic Map<String,TItem> recv_prkget() throws TIOError, AuthExpire, org.apache.thrift.TException
TIOErrorAuthExpireorg.apache.thrift.TExceptionpublic void rdel(KeyPair kp, ByteBuffer startKey, ByteBuffer stopKey, int count) throws TIOError, AuthExpire, org.apache.thrift.TException
TKvdbService.Ifacerdel 在接口中 TKvdbService.IfaceTIOErrorAuthExpireorg.apache.thrift.TExceptionpublic void send_rdel(KeyPair kp, ByteBuffer startKey, ByteBuffer stopKey, int count) throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic void recv_rdel()
throws TIOError,
AuthExpire,
org.apache.thrift.TException
TIOErrorAuthExpireorg.apache.thrift.TExceptionCopyright © 2016. All rights reserved.