public class ZstandardCodec extends Codec
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_COMPRESSION |
static boolean |
DEFAULT_USE_BUFFERPOOL |
| Constructor and Description |
|---|
ZstandardCodec(int compressionLevel,
boolean useChecksum,
boolean useBufferPool)
Create a ZstandardCodec instance with the given compressionLevel, checksum,
and bufferPool option
|
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
compress(ByteBuffer data)
Compresses the input data
|
ByteBuffer |
decompress(ByteBuffer compressedData)
Decompress the data
|
boolean |
equals(Object obj)
Codecs must implement an equals() method.
|
String |
getName()
Name of the codec; written to the file's metadata.
|
int |
hashCode()
Codecs must implement a hashCode() method that is consistent with equals().
|
String |
toString() |
computeOffsetpublic static final int DEFAULT_COMPRESSION
public static final boolean DEFAULT_USE_BUFFERPOOL
public ZstandardCodec(int compressionLevel,
boolean useChecksum,
boolean useBufferPool)
public String getName()
Codecpublic ByteBuffer compress(ByteBuffer data) throws IOException
Codeccompress in class CodecIOExceptionpublic ByteBuffer decompress(ByteBuffer compressedData) throws IOException
Codecdecompress in class CodecIOExceptionpublic int hashCode()
Codecpublic boolean equals(Object obj)
CodecCopyright © 2009–2023 The Apache Software Foundation. All rights reserved.