Class ZstdCodec
java.lang.Object
org.apache.hadoop.hbase.io.compress.zstd.ZstdCodec
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable
,org.apache.hadoop.io.compress.CompressionCodec
@Private
public class ZstdCodec
extends Object
implements org.apache.hadoop.conf.Configurable, org.apache.hadoop.io.compress.CompressionCodec
Hadoop ZStandard codec implemented with zstd-jni.
This is data format compatible with Hadoop's native ZStandard codec.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hadoop.io.compress.CompressionCodec
org.apache.hadoop.io.compress.CompressionCodec.Util
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.io.compress.Compressor
org.apache.hadoop.io.compress.Decompressor
org.apache.hadoop.io.compress.CompressionInputStream
org.apache.hadoop.io.compress.CompressionInputStream
createInputStream
(InputStream in, org.apache.hadoop.io.compress.Decompressor d) org.apache.hadoop.io.compress.CompressionOutputStream
org.apache.hadoop.io.compress.CompressionOutputStream
createOutputStream
(OutputStream out, org.apache.hadoop.io.compress.Compressor c) (package private) static int
getBufferSize
(org.apache.hadoop.conf.Configuration conf) Class<? extends org.apache.hadoop.io.compress.Compressor>
org.apache.hadoop.conf.Configuration
getConf()
Class<? extends org.apache.hadoop.io.compress.Decompressor>
(package private) static byte[]
getDictionary
(org.apache.hadoop.conf.Configuration conf) (package private) static int
getDictionaryId
(byte[] dictionary) (package private) static int
getLevel
(org.apache.hadoop.conf.Configuration conf) private void
init()
(package private) static boolean
isDictionary
(byte[] dictionary) void
setConf
(org.apache.hadoop.conf.Configuration conf)
-
Field Details
-
ZSTD_LEVEL_KEY
- See Also:
-
ZSTD_BUFFER_SIZE_KEY
- See Also:
-
ZSTD_BUFFER_SIZE_DEFAULT
- See Also:
-
ZSTD_DICTIONARY_KEY
- See Also:
-
conf
-
bufferSize
-
level
-
dictionary
-
-
Constructor Details
-
ZstdCodec
public ZstdCodec()
-
-
Method Details
-
getConf
- Specified by:
getConf
in interfaceorg.apache.hadoop.conf.Configurable
-
setConf
- Specified by:
setConf
in interfaceorg.apache.hadoop.conf.Configurable
-
createCompressor
- Specified by:
createCompressor
in interfaceorg.apache.hadoop.io.compress.CompressionCodec
-
createDecompressor
- Specified by:
createDecompressor
in interfaceorg.apache.hadoop.io.compress.CompressionCodec
-
createInputStream
public org.apache.hadoop.io.compress.CompressionInputStream createInputStream(InputStream in) throws IOException - Specified by:
createInputStream
in interfaceorg.apache.hadoop.io.compress.CompressionCodec
- Throws:
IOException
-
createInputStream
public org.apache.hadoop.io.compress.CompressionInputStream createInputStream(InputStream in, org.apache.hadoop.io.compress.Decompressor d) throws IOException - Specified by:
createInputStream
in interfaceorg.apache.hadoop.io.compress.CompressionCodec
- Throws:
IOException
-
createOutputStream
public org.apache.hadoop.io.compress.CompressionOutputStream createOutputStream(OutputStream out) throws IOException - Specified by:
createOutputStream
in interfaceorg.apache.hadoop.io.compress.CompressionCodec
- Throws:
IOException
-
createOutputStream
public org.apache.hadoop.io.compress.CompressionOutputStream createOutputStream(OutputStream out, org.apache.hadoop.io.compress.Compressor c) throws IOException - Specified by:
createOutputStream
in interfaceorg.apache.hadoop.io.compress.CompressionCodec
- Throws:
IOException
-
getCompressorType
- Specified by:
getCompressorType
in interfaceorg.apache.hadoop.io.compress.CompressionCodec
-
getDecompressorType
- Specified by:
getDecompressorType
in interfaceorg.apache.hadoop.io.compress.CompressionCodec
-
getDefaultExtension
- Specified by:
getDefaultExtension
in interfaceorg.apache.hadoop.io.compress.CompressionCodec
-
getLevel
-
getBufferSize
-
getDictionary
-
isDictionary
-
getDictionaryId
-
init
-