Package org.apache.orc.impl
Class OrcCodecPool
java.lang.Object
org.apache.orc.impl.OrcCodecPool
A clone of Hadoop codec pool for ORC; cause it has its own codecs...
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
Method Details
-
getCodec
-
returnCodec
Returns the codec to the pool or closes it, suppressing exceptions.- Parameters:
kind
- Compression kind.codec
- Codec.
-
getPoolSize
-
clear
public static void clear()Clear the codec pool. Mostly used for testing.
-