Class SnappyDecompressor

java.lang.Object
org.apache.hadoop.hbase.io.compress.xerial.SnappyDecompressor
All Implemented Interfaces:
org.apache.hadoop.io.compress.Decompressor

@Private public class SnappyDecompressor extends Object implements org.apache.hadoop.io.compress.Decompressor
Hadoop decompressor glue for Xerial Snappy.
  • 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