public static interface KeyValueWorkerClientService.Iface extends AlluxioService.Iface
| 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.
|
getServiceVersionByteBuffer get(long blockId, ByteBuffer key) throws AlluxioTException, ThriftIOException, org.apache.thrift.TException
blockId - the id of the block being accessedkey - binary of the keyAlluxioTExceptionThriftIOExceptionorg.apache.thrift.TExceptionList<ByteBuffer> getNextKeys(long blockId, ByteBuffer key, int numKeys) throws AlluxioTException, ThriftIOException, org.apache.thrift.TException
blockId - the id of the partitionkey - current keynumKeys - maximum number of keys to getAlluxioTExceptionThriftIOExceptionorg.apache.thrift.TExceptionint getSize(long blockId)
throws AlluxioTException,
ThriftIOException,
org.apache.thrift.TException
blockId - the id of the partitionAlluxioTExceptionThriftIOExceptionorg.apache.thrift.TExceptionCopyright © 2016. All Rights Reserved.