@ThreadSafe public final class BlockReadRequest extends Object
Constructor and Description |
---|
BlockReadRequest(long id,
long start,
long end,
long chunkSize,
boolean promote,
boolean positionShort,
Protocol.OpenUfsBlockOptions openUfsBlockOptions)
Creates an instance of
BlockReadRequest . |
BlockReadRequest(ReadRequest request)
Creates an instance of
BlockReadRequest . |
Modifier and Type | Method and Description |
---|---|
long |
getChunkSize() |
long |
getEnd() |
long |
getId() |
Protocol.OpenUfsBlockOptions |
getOpenUfsBlockOptions() |
long |
getSessionId() |
long |
getStart() |
boolean |
isPersisted() |
boolean |
isPositionShort() |
boolean |
isPromote() |
String |
toString() |
public BlockReadRequest(ReadRequest request)
BlockReadRequest
.request
- the block read requestpublic BlockReadRequest(long id, long start, long end, long chunkSize, boolean promote, boolean positionShort, Protocol.OpenUfsBlockOptions openUfsBlockOptions)
BlockReadRequest
.id
- block idstart
- start offset of this requestend
- start offset of this requestchunkSize
- chunk size in bytespromote
- whether to promote the block to top tierpositionShort
- whether this is a short readopenUfsBlockOptions
- options to read file from UFSpublic long getSessionId()
public long getId()
public long getStart()
public long getEnd()
public long getChunkSize()
public boolean isPromote()
public boolean isPositionShort()
public Protocol.OpenUfsBlockOptions getOpenUfsBlockOptions()
public boolean isPersisted()
Copyright © 2023. All Rights Reserved.