@ThreadSafe public final class KeyValueWorkerClientServiceHandler extends Object implements KeyValueWorkerClientService.Iface
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.
|
GetServiceVersionTResponse |
getServiceVersion(GetServiceVersionTOptions options)
Returns the version of the master service.
|
GetSizeTResponse |
getSize(long blockId,
GetSizeTOptions options)
Gets the number of key-value pairs in the partition.
|
public GetServiceVersionTResponse getServiceVersion(GetServiceVersionTOptions options)
AlluxioService.Iface
getServiceVersion
in interface AlluxioService.Iface
options
- the method optionspublic GetTResponse get(long blockId, ByteBuffer key, GetTOptions options) throws AlluxioTException
KeyValueWorkerClientService.Iface
get
in interface KeyValueWorkerClientService.Iface
blockId
- the id of the block being accessedkey
- binary of the keyoptions
- the method optionsAlluxioTException
public GetNextKeysTResponse getNextKeys(long blockId, ByteBuffer key, int numKeys, GetNextKeysTOptions options) throws AlluxioTException
KeyValueWorkerClientService.Iface
getNextKeys
in interface KeyValueWorkerClientService.Iface
blockId
- the id of the partitionkey
- current keynumKeys
- maximum number of keys to getoptions
- the method optionsAlluxioTException
public GetSizeTResponse getSize(long blockId, GetSizeTOptions options) throws AlluxioTException
KeyValueWorkerClientService.Iface
getSize
in interface KeyValueWorkerClientService.Iface
blockId
- the id of the partitionoptions
- the method optionsAlluxioTException
Copyright © 2023. All Rights Reserved.