Class SplitCompressionInputStream

java.lang.Object
java.io.InputStream
org.apache.hadoop.io.compress.CompressionInputStream
org.apache.hadoop.io.compress.SplitCompressionInputStream
All Implemented Interfaces:
Closeable, AutoCloseable, Seekable, org.apache.hadoop.fs.statistics.IOStatisticsSource

@Public @Evolving public abstract class SplitCompressionInputStream extends CompressionInputStream
An InputStream covering a range of compressed data. The start and end offsets requested by a client may be modified by the codec to fit block boundaries or other algorithm-dependent requirements.
  • Constructor Details

  • Method Details

    • setStart

      protected void setStart(long start)
    • setEnd

      protected void setEnd(long end)
    • getAdjustedStart

      public long getAdjustedStart()
      After calling createInputStream, the values of start or end might change. So this method can be used to get the new value of start.
      Returns:
      The changed value of start
    • getAdjustedEnd

      public long getAdjustedEnd()
      After calling createInputStream, the values of start or end might change. So this method can be used to get the new value of end.
      Returns:
      The changed value of end