public class ZstandardCodec extends Codec
Constructor and Description |
---|
ZstandardCodec() |
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
compress(ByteBuffer uncompressedData)
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().
|
public String getName()
Codec
public ByteBuffer compress(ByteBuffer uncompressedData) throws IOException
Codec
compress
in class Codec
IOException
public ByteBuffer decompress(ByteBuffer compressedData) throws IOException
Codec
decompress
in class Codec
IOException
public int hashCode()
Codec
public boolean equals(Object obj)
Codec
Copyright © 2009–2019 Cloudera. All rights reserved.