Package org.spf4j.log
Class ZstandardCodec
- java.lang.Object
-
- org.apache.avro.file.Codec
-
- org.spf4j.log.ZstandardCodec
-
public final class ZstandardCodec extends org.apache.avro.file.CodecA more efficient implementation that should thrash less memory.- Author:
- Zoltan Farkas
-
-
Constructor Summary
Constructors Constructor Description ZstandardCodec(int compressionLevel, boolean useChecksum)Create a ZstandardCodec instance with the given compressionLevel and checksum option
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteBuffercompress(ByteBuffer data)ByteBufferdecompress(ByteBuffer compressedData)booleanequals(Object obj)StringgetName()inthashCode()StringtoString()
-
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein classorg.apache.avro.file.Codec
-
compress
public ByteBuffer compress(ByteBuffer data) throws IOException
- Specified by:
compressin classorg.apache.avro.file.Codec- Throws:
IOException
-
decompress
public ByteBuffer decompress(ByteBuffer compressedData) throws IOException
- Specified by:
decompressin classorg.apache.avro.file.Codec- Throws:
IOException
-
hashCode
public int hashCode()
- Specified by:
hashCodein classorg.apache.avro.file.Codec
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin classorg.apache.avro.file.Codec
-
toString
public String toString()
- Overrides:
toStringin classorg.apache.avro.file.Codec
-
-