@NotThreadSafe public final class InStreamOptions extends Object
OpenFileOptions
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 Protocol.ReadRequest
s.Constructor and Description |
---|
InStreamOptions(URIStatus status)
Creates with the default
OpenFileOptions . |
InStreamOptions(URIStatus status,
OpenFileOptions options)
Creates based on the arguments provided.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
BlockInfo |
getBlockInfo(long blockId) |
Protocol.OpenUfsBlockOptions |
getOpenUfsBlockOptions(long blockId) |
OpenFileOptions |
getOptions() |
URIStatus |
getStatus() |
int |
hashCode() |
String |
toString() |
public InStreamOptions(URIStatus status)
OpenFileOptions
.status
- the file to create the options forpublic InStreamOptions(URIStatus status, OpenFileOptions options)
status
- the file to create the options foroptions
- the OpenFileOptions
to usepublic OpenFileOptions getOptions()
OpenFileOptions
associated with the instreampublic BlockInfo getBlockInfo(long blockId)
blockId
- id of the blockpublic Protocol.OpenUfsBlockOptions getOpenUfsBlockOptions(long blockId)
blockId
- id of the blockProtocol.OpenUfsBlockOptions
based on the block id and optionsCopyright © 2023. All Rights Reserved.