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

org.apache.orc.impl

## Class OrcCodecPool

- java.lang.Object
- - org.apache.orc.impl.OrcCodecPool

-     public final class OrcCodecPool
      extends Object

  A clone of Hadoop codec pool for ORC; cause it has its own codecs...

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `clear()` Clear the codec pool.
    `static CompressionCodec` | `getCodec(CompressionKind kind)`
    `static int` | `getPoolSize(CompressionKind kind)`
    `static void` | `returnCodec(CompressionKind kind, CompressionCodec codec)` Returns the codec to the pool or closes it, suppressing exceptions.

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

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

- - ### Method Detail

    - #### getCodec

          public static CompressionCodec getCodec(CompressionKind kind)

    - #### returnCodec

          public static void returnCodec(CompressionKind kind,
                                         CompressionCodec codec)

      Returns the codec to the pool or closes it, suppressing exceptions.
      Parameters:
        `kind` - Compression kind.
        `codec` - Codec.

    - #### getPoolSize

          public static int getPoolSize(CompressionKind kind)

    - #### clear

          public static void clear()

      Clear the codec pool. Mostly used for testing.

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