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 Details

    • 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.