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.Iface
auth
在接口中 TKvdbService.Iface
TIOError
AuthFailure
org.apache.thrift.TException
public void send_auth(KeyPair kp) throws org.apache.thrift.TException
org.apache.thrift.TException
public KeyPair recv_auth() throws TIOError, AuthFailure, org.apache.thrift.TException
TIOError
AuthFailure
org.apache.thrift.TException
public TItem getItem(KeyPair kp, ByteBuffer key) throws TIOError, AuthExpire, org.apache.thrift.TException
TKvdbService.Iface
getItem
在接口中 TKvdbService.Iface
TIOError
AuthExpire
org.apache.thrift.TException
public void send_getItem(KeyPair kp, ByteBuffer key) throws org.apache.thrift.TException
org.apache.thrift.TException
public TItem recv_getItem() throws TIOError, AuthExpire, org.apache.thrift.TException
TIOError
AuthExpire
org.apache.thrift.TException
public Map<String,TItem> getItems(KeyPair kp, List<ByteBuffer> keys) throws TIOError, AuthExpire, org.apache.thrift.TException
TKvdbService.Iface
getItems
在接口中 TKvdbService.Iface
kp
- a list of keys to fetch, the Item list
will have the Results at corresponding positions
or null if there was an errorTIOError
AuthExpire
org.apache.thrift.TException
public void send_getItems(KeyPair kp, List<ByteBuffer> keys) throws org.apache.thrift.TException
org.apache.thrift.TException
public Map<String,TItem> recv_getItems() throws TIOError, AuthExpire, org.apache.thrift.TException
TIOError
AuthExpire
org.apache.thrift.TException
public Map<String,TItem> getItemsByPrefix(KeyPair kp, ByteBuffer prefix, int count) throws TIOError, TIllegalArgument, AuthExpire, org.apache.thrift.TException
TKvdbService.Iface
getItemsByPrefix
在接口中 TKvdbService.Iface
kp
- Key prefix to fetch, the Item listTIOError
TIllegalArgument
AuthExpire
org.apache.thrift.TException
public void send_getItemsByPrefix(KeyPair kp, ByteBuffer prefix, int count) throws org.apache.thrift.TException
org.apache.thrift.TException
public Map<String,TItem> recv_getItemsByPrefix() throws TIOError, TIllegalArgument, AuthExpire, org.apache.thrift.TException
TIOError
TIllegalArgument
AuthExpire
org.apache.thrift.TException
public void setItem(KeyPair kp, ByteBuffer key, TItem item) throws TIOError, AuthExpire, org.apache.thrift.TException
TKvdbService.Iface
setItem
在接口中 TKvdbService.Iface
kp
- the key to set data initem
- the TPut to putTIOError
AuthExpire
org.apache.thrift.TException
public void send_setItem(KeyPair kp, ByteBuffer key, TItem item) throws org.apache.thrift.TException
org.apache.thrift.TException
public void recv_setItem() throws TIOError, AuthExpire, org.apache.thrift.TException
TIOError
AuthExpire
org.apache.thrift.TException
public void deleteItem(KeyPair kp, ByteBuffer key) throws TIOError, AuthExpire, org.apache.thrift.TException
TKvdbService.Iface
deleteItem
在接口中 TKvdbService.Iface
kp
- the key to deleteTIOError
AuthExpire
org.apache.thrift.TException
public void send_deleteItem(KeyPair kp, ByteBuffer key) throws org.apache.thrift.TException
org.apache.thrift.TException
public void recv_deleteItem() throws TIOError, AuthExpire, org.apache.thrift.TException
TIOError
AuthExpire
org.apache.thrift.TException
public Map<String,TItem> rget(KeyPair kp, ByteBuffer startKey, ByteBuffer stopKey, int count) throws TIOError, AuthExpire, org.apache.thrift.TException
TKvdbService.Iface
rget
在接口中 TKvdbService.Iface
TIOError
AuthExpire
org.apache.thrift.TException
public void send_rget(KeyPair kp, ByteBuffer startKey, ByteBuffer stopKey, int count) throws org.apache.thrift.TException
org.apache.thrift.TException
public Map<String,TItem> recv_rget() throws TIOError, AuthExpire, org.apache.thrift.TException
TIOError
AuthExpire
org.apache.thrift.TException
public Map<String,TItem> prkget(KeyPair kp, ByteBuffer prefixKey, int count, boolean isContainValue, ByteBuffer compareKey) throws TIOError, AuthExpire, org.apache.thrift.TException
TKvdbService.Iface
prkget
在接口中 TKvdbService.Iface
TIOError
AuthExpire
org.apache.thrift.TException
public void send_prkget(KeyPair kp, ByteBuffer prefixKey, int count, boolean isContainValue, ByteBuffer compareKey) throws org.apache.thrift.TException
org.apache.thrift.TException
public Map<String,TItem> recv_prkget() throws TIOError, AuthExpire, org.apache.thrift.TException
TIOError
AuthExpire
org.apache.thrift.TException
public void rdel(KeyPair kp, ByteBuffer startKey, ByteBuffer stopKey, int count) throws TIOError, AuthExpire, org.apache.thrift.TException
TKvdbService.Iface
rdel
在接口中 TKvdbService.Iface
TIOError
AuthExpire
org.apache.thrift.TException
public void send_rdel(KeyPair kp, ByteBuffer startKey, ByteBuffer stopKey, int count) throws org.apache.thrift.TException
org.apache.thrift.TException
public void recv_rdel() throws TIOError, AuthExpire, org.apache.thrift.TException
TIOError
AuthExpire
org.apache.thrift.TException
Copyright © 2016. All rights reserved.