@NotThreadSafe public final class InStreamOptions extends Object
OpenFilePOptions as well as the URIStatus being read. In addition to
providing access to the fields, it provides convenience functions for various nested
fields and creating alluxio.proto.dataserver.Protocol.ReadRequests.| Constructor and Description |
|---|
InStreamOptions(alluxio.client.file.URIStatus status,
alluxio.conf.AlluxioConfiguration alluxioConf)
Creates with the default
OpenFilePOptions. |
InStreamOptions(alluxio.client.file.URIStatus status,
alluxio.grpc.OpenFilePOptions options,
alluxio.conf.AlluxioConfiguration alluxioConf)
Creates with given
OpenFilePOptions instance. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
alluxio.wire.BlockInfo |
getBlockInfo(long blockId) |
alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions |
getOpenUfsBlockOptions(long blockId) |
alluxio.grpc.OpenFilePOptions |
getOptions() |
alluxio.client.file.URIStatus |
getStatus() |
BlockLocationPolicy |
getUfsReadLocationPolicy() |
int |
hashCode() |
void |
setUfsReadLocationPolicy(BlockLocationPolicy ufsReadLocationPolicy)
Sets block read location policy.
|
String |
toString() |
public InStreamOptions(alluxio.client.file.URIStatus status,
alluxio.conf.AlluxioConfiguration alluxioConf)
OpenFilePOptions.status - the file to create the options foralluxioConf - Alluxio configurationpublic InStreamOptions(alluxio.client.file.URIStatus status,
alluxio.grpc.OpenFilePOptions options,
alluxio.conf.AlluxioConfiguration alluxioConf)
OpenFilePOptions instance.status - URI statusoptions - OpenFile optionsalluxioConf - Alluxio configurationpublic alluxio.grpc.OpenFilePOptions getOptions()
OpenFilePOptions associated with the instreampublic void setUfsReadLocationPolicy(BlockLocationPolicy ufsReadLocationPolicy)
ufsReadLocationPolicy - block location policy implementationpublic BlockLocationPolicy getUfsReadLocationPolicy()
BlockLocationPolicy associated with the instreampublic alluxio.client.file.URIStatus getStatus()
URIStatus associated with the instreampublic alluxio.wire.BlockInfo getBlockInfo(long blockId)
blockId - id of the blockpublic alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions getOpenUfsBlockOptions(long blockId)
blockId - id of the blockProtocol.OpenUfsBlockOptions based on the block id and optionsCopyright © 2024. All Rights Reserved.