public class CompressionDescriptor extends Object implements Cloneable, Serializable
| Modifier and Type | Field and Description |
|---|---|
static int |
COMPRESSION_BYTE_BUFFER_LENGTH |
| Constructor and Description |
|---|
CompressionDescriptor() |
CompressionDescriptor(DataBuffer buffer)
Create a compression descriptor from the given
data buffer elements
|
CompressionDescriptor(DataBuffer buffer,
NDArrayCompressor compressor)
Initialize a compression descriptor
based on the given data buffer (for the sizes)
and the compressor to get the opType
|
CompressionDescriptor(DataBuffer buffer,
String algorithm)
Initialize a compression descriptor
based on the given algorithm and data buffer
|
| Modifier and Type | Method and Description |
|---|---|
CompressionDescriptor |
clone() |
static CompressionDescriptor |
fromByteBuffer(ByteBuffer byteBuffer)
Instantiate a compression descriptor from
the given bytebuffer
|
ByteBuffer |
toByteBuffer()
Return a direct allocated
bytebuffer from the compression codec.
|
public static final int COMPRESSION_BYTE_BUFFER_LENGTH
public CompressionDescriptor()
public CompressionDescriptor(DataBuffer buffer)
buffer - the databuffer to create
the compression descriptor frompublic CompressionDescriptor(DataBuffer buffer, String algorithm)
buffer - the data buffer to base the sizes off ofalgorithm - the algorithm used
in the descriptorpublic CompressionDescriptor(DataBuffer buffer, NDArrayCompressor compressor)
buffer - compressor - public static CompressionDescriptor fromByteBuffer(ByteBuffer byteBuffer)
byteBuffer - the bytebuffer to instantiate
the descriptor frompublic ByteBuffer toByteBuffer()
public CompressionDescriptor clone()
Copyright © 2018. All rights reserved.