Package org.apache.hadoop.fs.s3a.impl
Class OpenFileSupport.OpenFileInformation
java.lang.Object
org.apache.hadoop.fs.s3a.impl.OpenFileSupport.OpenFileInformation
- Enclosing class:
- OpenFileSupport
The information on a file needed to open it.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionPropagate the options to the operation context being built up.build()Build.intlongGet the file length.longlonglongtoString()withAsyncDrainThreshold(long value) Set builder value.withBufferSize(int value) Set builder value.Set builder value.withFileLength(long value) Set builder value.withInputPolicy(S3AInputPolicy value) Set builder value.withReadAheadRange(long value) Set builder value.withSplitEnd(long value) Set builder value.withSplitStart(long value) Set builder value.withStatus(S3AFileStatus value) Set builder value.
-
Constructor Details
-
OpenFileInformation
public OpenFileInformation()Constructor.
-
-
Method Details
-
build
Build.- Returns:
- this object
-
getStatus
-
getInputPolicy
-
getChangePolicy
-
getReadAheadRange
public long getReadAheadRange() -
getBufferSize
public int getBufferSize() -
getSplitStart
public long getSplitStart() -
getSplitEnd
public long getSplitEnd() -
toString
-
getFileLength
public long getFileLength()Get the file length.- Returns:
- the file length; -1 if not known.
-
withStatus
Set builder value.- Parameters:
value- new value- Returns:
- the builder
-
withInputPolicy
Set builder value.- Parameters:
value- new value- Returns:
- the builder
-
withChangePolicy
Set builder value.- Parameters:
value- new value- Returns:
- the builder
-
withReadAheadRange
Set builder value.- Parameters:
value- new value- Returns:
- the builder
-
withBufferSize
Set builder value.- Parameters:
value- new value- Returns:
- the builder
-
withSplitStart
Set builder value.- Parameters:
value- new value- Returns:
- the builder
-
withSplitEnd
Set builder value.- Parameters:
value- new value- Returns:
- the builder
-
withFileLength
Set builder value.- Parameters:
value- new value- Returns:
- the builder
-
withAsyncDrainThreshold
Set builder value.- Parameters:
value- new value- Returns:
- the builder
-
applyOptions
Propagate the options to the operation context being built up.- Parameters:
roc- context- Returns:
- the context
-