| Modifier and Type | Class and Description |
|---|---|
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final int | |
| private final int | |
| private ZstdCompressor. |
| Access | Constructor and Description |
|---|---|
| private | ZstdCompressor(int
specifies the level of the compression compressionLevel, int is used to calculate the compressionLevel blockSize, int specifies the size of the largest compressed object maxEncodeSize)
|
| Modifier and Type | Method and Description |
|---|---|
| private Buffer | |
| public void | |
| public Buffer | compress(Buffer
the in, BufferAllocator Buffer that contains the data to be compressed.the allocator)BufferAllocator that is used to allocate a new buffer (if needed) to write the
compressed bytes too.Implements io. Buffer and compress into a new Buffer that will be
allocated (if needed) from the BufferAllocator.
|
| private void | |
| public Buffer | finish(BufferAllocator allocator)
Implements io. |
| public boolean | isClosed()
Implements io. true if the decompressor was closed, false otherwise.
|
| public boolean | isFinished()
Implements io. true if the compressor was finished or closed.
|
| public static Supplier | |
| public static Supplier | Returns: the factory.specifies the level of the compression compressionLevel)Creates a new Zstd compressor factory. |
| public static Supplier | Returns: the factory.is used to calculate the compressionLevel blockSize, int specifies the size of the largest compressed object maxEncodeSize)Creates a new Zstd compressor factory. |
| public static Supplier | Returns: the factory.specifies the level of the compression compressionLevel, int is used to calculate the compressionLevel blockSize, int specifies the size of the largest compressed object maxEncodeSize)
|
| blockSize | back to summary |
|---|---|
| private final int blockSize | |
| compressionLevel | back to summary |
|---|---|
| private final int compressionLevel | |
| maxEncodeSize | back to summary |
|---|---|
| private final int maxEncodeSize | |
| state | back to summary |
|---|---|
| private ZstdCompressor. | |
| ZstdCompressor | back to summary |
|---|---|
private ZstdCompressor(int compressionLevel, int blockSize, int maxEncodeSize)
| |
| allocateBuffer | back to summary |
|---|---|
| private Buffer allocateBuffer(BufferAllocator allocator, Buffer msg) | |
| close | back to summary |
|---|---|
| public void close() Implements io. Doc from io. #
Close the compressor. After this method was called
| |
| compress | back to summary |
|---|---|
| public Buffer compress(Buffer in, BufferAllocator allocator) throws CompressionException Implements io. Doc from io. This method will read from the input
| |
| compressData | back to summary |
|---|---|
| private void compressData(Buffer in, Buffer out) | |
| finish | back to summary |
|---|---|
| public Buffer finish(BufferAllocator allocator) Implements io. Doc from io. By calling this method we signal that the compression stream is marked as finish. The returned | |
| isClosed | back to summary |
|---|---|
| public boolean isClosed() Implements io. Doc from io. Return
| |
| isFinished | back to summary |
|---|---|
| public boolean isFinished() Implements io. Doc from io. Returns
| |
| newFactory | back to summary |
|---|---|
| public static Supplier Creates a new Zstd compressor factory.
Please note that if you use the default constructor, the default BLOCK_SIZE and MAX_BLOCK_SIZE
will be used. If you want to specify BLOCK_SIZE and MAX_BLOCK_SIZE yourself,
please use the
| |
| newFactory | back to summary |
|---|---|
| public static Supplier Creates a new Zstd compressor factory.
| |
| newFactory | back to summary |
|---|---|
| public static Supplier Creates a new Zstd compressor factory.
| |
| newFactory | back to summary |
|---|---|
public static Supplier
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final ZstdCompressor. | |
| public static final ZstdCompressor. | |
| public static final ZstdCompressor. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ZstdCompressor. | |
| public static ZstdCompressor. |
| CLOSED | back to summary |
|---|---|
| public static final ZstdCompressor. | |
| FINISHED | back to summary |
|---|---|
| public static final ZstdCompressor. | |
| PROCESSING | back to summary |
|---|---|
| public static final ZstdCompressor. | |
| State | back to summary |
|---|---|
| private State() | |
| valueOf | back to summary |
|---|---|
| public static ZstdCompressor. | |
| values | back to summary |
|---|---|
| public static ZstdCompressor. | |