SnappyCodec (ORC Core 1.6.6 API)
Date: 2021-01-13

org.apache.orc.impl

## Class SnappyCodec

- java.lang.Object
- - org.apache.orc.impl.AircompressorCodec
  - - org.apache.orc.impl.SnappyCodec

- All Implemented Interfaces:
    Closeable, AutoCloseable, CompressionCodec, DirectDecompressionCodec

      public class SnappyCodec
      extends AircompressorCodec
      implements DirectDecompressionCodec

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface org.apache.orc.CompressionCodec

      `CompressionCodec.DataKind, CompressionCodec.Options, CompressionCodec.SpeedModifier`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `decompress(ByteBuffer in, ByteBuffer out)` Decompress the in buffer to the out buffer.
    `void` | `destroy()` Closes the codec, releasing the resources.
    `void` | `directDecompress(ByteBuffer in, ByteBuffer out)`
    `boolean` | `isAvailable()`
    `void` | `reset()` Resets the codec, preparing it for reuse.

    - ### Methods inherited from class org.apache.orc.impl.AircompressorCodec

      `close, compress, getBuffer, getDefaultOptions, getKind`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface org.apache.orc.CompressionCodec

      `close, compress, getDefaultOptions, getKind`

- - ### Method Detail

    - #### decompress

          public void decompress(ByteBuffer in,
                                 ByteBuffer out)
                          throws IOException

      Description copied from interface: `CompressionCodec`
      Decompress the in buffer to the out buffer.
      Specified by:
        `decompress` in interface `CompressionCodec`
      Overrides:
        `decompress` in class `AircompressorCodec`
      Parameters:
        `in` - the bytes to decompress
        `out` - the decompressed bytes
      Throws:
        `IOException`

    - #### isAvailable

          public boolean isAvailable()

      Specified by:
        `isAvailable` in interface `DirectDecompressionCodec`

    - #### directDecompress

          public void directDecompress(ByteBuffer in,
                                       ByteBuffer out)
                                throws IOException

      Specified by:
        `directDecompress` in interface `DirectDecompressionCodec`
      Throws:
        `IOException`

    - #### reset

          public void reset()

      Description copied from interface: `CompressionCodec`
      Resets the codec, preparing it for reuse.
      Specified by:
        `reset` in interface `CompressionCodec`
      Overrides:
        `reset` in class `AircompressorCodec`

    - #### destroy

          public void destroy()

      Description copied from interface: `CompressionCodec`
      Closes the codec, releasing the resources.
      Specified by:
        `destroy` in interface `CompressionCodec`
      Overrides:
        `destroy` in class `AircompressorCodec`

Copyright © 2013–2021 The Apache Software Foundation. All rights reserved.