Class VectoredIOContext

java.lang.Object
org.apache.hadoop.fs.s3a.VectoredIOContext

public final class VectoredIOContext extends Object
Configuration information for vectored IO.
  • Constructor Details

    • VectoredIOContext

      public VectoredIOContext()
      Default no arg constructor.
  • Method Details

    • build

      public VectoredIOContext build()
      Make immutable.
      Returns:
      this instance.
    • setMinSeekForVectoredReads

      public VectoredIOContext setMinSeekForVectoredReads(int minSeek)
      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

      public VectoredIOContext setMaxReadSizeForVectoredReads(int maxSize)
      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

      public VectoredIOContext setVectoredActiveRangeReads(int activeReads)
      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

      public String toString()
      Overrides:
      toString in class Object