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 voidclear()Clear the codec pool.static CompressionCodecgetCodec(CompressionKind kind) static intgetPoolSize(CompressionKind kind) static voidreturnCodec(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.
-