Class HadoopDecompressor<T extends io.airlift.compress.Decompressor>

java.lang.Object
org.apache.hadoop.hbase.io.compress.aircompressor.HadoopDecompressor<T>
All Implemented Interfaces:
org.apache.hadoop.io.compress.Decompressor
Direct Known Subclasses:
Lz4Codec.HadoopLz4Decompressor, LzoCodec.HadoopLzoDecompressor, SnappyCodec.HadoopSnappyDecompressor, ZstdCodec.HadoopZstdDecompressor

@Private public class HadoopDecompressor<T extends io.airlift.compress.Decompressor> extends Object implements org.apache.hadoop.io.compress.Decompressor
Hadoop decompressor glue for aircompressor decompressors.
  • Field Details

  • Constructor Details

  • Method Details

    • decompress

      public int decompress(byte[] b, int off, int len) throws IOException
      Specified by:
      decompress in interface org.apache.hadoop.io.compress.Decompressor
      Throws:
      IOException
    • end

      public void end()
      Specified by:
      end in interface org.apache.hadoop.io.compress.Decompressor
    • finished

      public boolean finished()
      Specified by:
      finished in interface org.apache.hadoop.io.compress.Decompressor
    • getRemaining

      public int getRemaining()
      Specified by:
      getRemaining in interface org.apache.hadoop.io.compress.Decompressor
    • needsDictionary

      public boolean needsDictionary()
      Specified by:
      needsDictionary in interface org.apache.hadoop.io.compress.Decompressor
    • reset

      public void reset()
      Specified by:
      reset in interface org.apache.hadoop.io.compress.Decompressor
    • needsInput

      public boolean needsInput()
      Specified by:
      needsInput in interface org.apache.hadoop.io.compress.Decompressor
    • setDictionary

      public void setDictionary(byte[] b, int off, int len)
      Specified by:
      setDictionary in interface org.apache.hadoop.io.compress.Decompressor
    • setInput

      public void setInput(byte[] b, int off, int len)
      Specified by:
      setInput in interface org.apache.hadoop.io.compress.Decompressor