Package org.apache.hadoop.fs.s3a
Class VectoredIOContext
java.lang.Object
org.apache.hadoop.fs.s3a.VectoredIOContext
Configuration information for vectored IO.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Make immutable.intThe largest size that we should group ranges.intWhat is the threshold at which a seek() to a new location is initiated, rather than merging ranges?intMaximum number of active range read operation a single input stream can have.setMaxReadSizeForVectoredReads(int maxSize) What is the largest size that we should group ranges together during vectored read operation?setMinSeekForVectoredReads(int minSeek) What is the threshold at which a seek() to a new location is initiated, rather than merging ranges?setVectoredActiveRangeReads(int activeReads) Maximum number of active range read operation a single input stream can have.toString()
-
Constructor Details
-
VectoredIOContext
public VectoredIOContext()Default no arg constructor.
-
-
Method Details
-
build
Make immutable.- Returns:
- this instance.
-
setMinSeekForVectoredReads
What is the threshold at which a seek() to a new location is initiated, rather than merging ranges? Set to zero to disable range merging entirely.- Parameters:
minSeek- minimum amount of data to skip.- Returns:
- this instance.
-
getMinSeekForVectorReads
public int getMinSeekForVectorReads()What is the threshold at which a seek() to a new location is initiated, rather than merging ranges?- Returns:
- a number greater than or equal to zero.
-
setMaxReadSizeForVectoredReads
What is the largest size that we should group ranges together during vectored read operation?- Parameters:
maxSize- maximum size- Returns:
- this instance.
-
getMaxReadSizeForVectorReads
public int getMaxReadSizeForVectorReads()The largest size that we should group ranges. together during vectored read operation- Returns:
- a number greater than or equal to zero.
-
getVectoredActiveRangeReads
public int getVectoredActiveRangeReads()Maximum number of active range read operation a single input stream can have.- Returns:
- number of extra threads for reading, or zero.
-
setVectoredActiveRangeReads
Maximum number of active range read operation a single input stream can have.- Parameters:
activeReads- number of extra threads for reading, or zero.- Returns:
- this instance. number of extra threads for reading, or zero.
-
toString
-