public static class KeyValueWorkerClientService.Client extends AlluxioService.Client implements KeyValueWorkerClientService.Iface
Modifier and Type | Class and Description |
---|---|
static class |
KeyValueWorkerClientService.Client.Factory |
Constructor and Description |
---|
Client(org.apache.thrift.protocol.TProtocol prot) |
Client(org.apache.thrift.protocol.TProtocol iprot,
org.apache.thrift.protocol.TProtocol oprot) |
Modifier and Type | Method and Description |
---|---|
GetTResponse |
get(long blockId,
ByteBuffer key,
GetTOptions options)
Looks up a key in the block with the given block id.
|
GetNextKeysTResponse |
getNextKeys(long blockId,
ByteBuffer key,
int numKeys,
GetNextKeysTOptions options)
Gets a batch of keys next to the given key in the partition.
|
GetSizeTResponse |
getSize(long blockId,
GetSizeTOptions options)
Gets the number of key-value pairs in the partition.
|
GetTResponse |
recv_get() |
GetNextKeysTResponse |
recv_getNextKeys() |
GetSizeTResponse |
recv_getSize() |
void |
send_get(long blockId,
ByteBuffer key,
GetTOptions options) |
void |
send_getNextKeys(long blockId,
ByteBuffer key,
int numKeys,
GetNextKeysTOptions options) |
void |
send_getSize(long blockId,
GetSizeTOptions options) |
getServiceVersion, recv_getServiceVersion, send_getServiceVersion
getInputProtocol, getOutputProtocol, receiveBase, sendBase, sendBaseOneway
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getServiceVersion
public Client(org.apache.thrift.protocol.TProtocol prot)
public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot)
public GetTResponse get(long blockId, ByteBuffer key, GetTOptions options) throws AlluxioTException, org.apache.thrift.TException
KeyValueWorkerClientService.Iface
get
in interface KeyValueWorkerClientService.Iface
blockId
- the id of the block being accessedkey
- binary of the keyoptions
- the method optionsAlluxioTException
org.apache.thrift.TException
public void send_get(long blockId, ByteBuffer key, GetTOptions options) throws org.apache.thrift.TException
org.apache.thrift.TException
public GetTResponse recv_get() throws AlluxioTException, org.apache.thrift.TException
AlluxioTException
org.apache.thrift.TException
public GetNextKeysTResponse getNextKeys(long blockId, ByteBuffer key, int numKeys, GetNextKeysTOptions options) throws AlluxioTException, org.apache.thrift.TException
KeyValueWorkerClientService.Iface
getNextKeys
in interface KeyValueWorkerClientService.Iface
blockId
- the id of the partitionkey
- current keynumKeys
- maximum number of keys to getoptions
- the method optionsAlluxioTException
org.apache.thrift.TException
public void send_getNextKeys(long blockId, ByteBuffer key, int numKeys, GetNextKeysTOptions options) throws org.apache.thrift.TException
org.apache.thrift.TException
public GetNextKeysTResponse recv_getNextKeys() throws AlluxioTException, org.apache.thrift.TException
AlluxioTException
org.apache.thrift.TException
public GetSizeTResponse getSize(long blockId, GetSizeTOptions options) throws AlluxioTException, org.apache.thrift.TException
KeyValueWorkerClientService.Iface
getSize
in interface KeyValueWorkerClientService.Iface
blockId
- the id of the partitionoptions
- the method optionsAlluxioTException
org.apache.thrift.TException
public void send_getSize(long blockId, GetSizeTOptions options) throws org.apache.thrift.TException
org.apache.thrift.TException
public GetSizeTResponse recv_getSize() throws AlluxioTException, org.apache.thrift.TException
AlluxioTException
org.apache.thrift.TException
Copyright © 2023. All Rights Reserved.