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 |
|---|
KeyValueWorkerClientService.Client(org.apache.thrift.protocol.TProtocol prot) |
KeyValueWorkerClientService.Client(org.apache.thrift.protocol.TProtocol iprot,
org.apache.thrift.protocol.TProtocol oprot) |
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
get(long blockId,
ByteBuffer key)
Looks up a key in the block with the given block id.
|
List<ByteBuffer> |
getNextKeys(long blockId,
ByteBuffer key,
int numKeys)
Gets a batch of keys next to the given key in the partition.
|
int |
getSize(long blockId)
Gets the number of key-value pairs in the partition.
|
ByteBuffer |
recv_get() |
List<ByteBuffer> |
recv_getNextKeys() |
int |
recv_getSize() |
void |
send_get(long blockId,
ByteBuffer key) |
void |
send_getNextKeys(long blockId,
ByteBuffer key,
int numKeys) |
void |
send_getSize(long blockId) |
getServiceVersion, recv_getServiceVersion, send_getServiceVersiongetInputProtocol, getOutputProtocol, receiveBase, sendBase, sendBaseOnewayclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetServiceVersionpublic KeyValueWorkerClientService.Client(org.apache.thrift.protocol.TProtocol prot)
public KeyValueWorkerClientService.Client(org.apache.thrift.protocol.TProtocol iprot,
org.apache.thrift.protocol.TProtocol oprot)
public ByteBuffer get(long blockId, ByteBuffer key) throws AlluxioTException, ThriftIOException, org.apache.thrift.TException
KeyValueWorkerClientService.Ifaceget in interface KeyValueWorkerClientService.IfaceblockId - the id of the block being accessedkey - binary of the keyAlluxioTExceptionThriftIOExceptionorg.apache.thrift.TExceptionpublic void send_get(long blockId,
ByteBuffer key)
throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic ByteBuffer recv_get() throws AlluxioTException, ThriftIOException, org.apache.thrift.TException
AlluxioTExceptionThriftIOExceptionorg.apache.thrift.TExceptionpublic List<ByteBuffer> getNextKeys(long blockId, ByteBuffer key, int numKeys) throws AlluxioTException, ThriftIOException, org.apache.thrift.TException
KeyValueWorkerClientService.IfacegetNextKeys in interface KeyValueWorkerClientService.IfaceblockId - the id of the partitionkey - current keynumKeys - maximum number of keys to getAlluxioTExceptionThriftIOExceptionorg.apache.thrift.TExceptionpublic void send_getNextKeys(long blockId,
ByteBuffer key,
int numKeys)
throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic List<ByteBuffer> recv_getNextKeys() throws AlluxioTException, ThriftIOException, org.apache.thrift.TException
AlluxioTExceptionThriftIOExceptionorg.apache.thrift.TExceptionpublic int getSize(long blockId)
throws AlluxioTException,
ThriftIOException,
org.apache.thrift.TException
KeyValueWorkerClientService.IfacegetSize in interface KeyValueWorkerClientService.IfaceblockId - the id of the partitionAlluxioTExceptionThriftIOExceptionorg.apache.thrift.TExceptionpublic void send_getSize(long blockId)
throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic int recv_getSize()
throws AlluxioTException,
ThriftIOException,
org.apache.thrift.TException
AlluxioTExceptionThriftIOExceptionorg.apache.thrift.TExceptionCopyright © 2016. All Rights Reserved.