public interface ICompressor
Modifier and Type | Interface and Description |
---|---|
static class |
ICompressor.Uses
Ways that a particular instance of ICompressor should be used internally in Cassandra.
|
Modifier and Type | Method and Description |
---|---|
void |
compress(java.nio.ByteBuffer input,
java.nio.ByteBuffer output)
Compression for ByteBuffers.
|
int |
initialCompressedBufferLength(int chunkLength) |
BufferType |
preferredBufferType()
Returns the preferred (most efficient) buffer type for this compressor.
|
default java.util.Set<ICompressor.Uses> |
recommendedUses()
Hints to Cassandra which uses this compressor is recommended for.
|
java.util.Set<java.lang.String> |
supportedOptions() |
boolean |
supports(BufferType bufferType)
Checks if the given buffer would be supported by the compressor.
|
int |
uncompress(byte[] input,
int inputOffset,
int inputLength,
byte[] output,
int outputOffset) |
void |
uncompress(java.nio.ByteBuffer input,
java.nio.ByteBuffer output)
Decompression for DirectByteBuffers.
|
int initialCompressedBufferLength(int chunkLength)
int uncompress(byte[] input, int inputOffset, int inputLength, byte[] output, int outputOffset) throws java.io.IOException
java.io.IOException
void compress(java.nio.ByteBuffer input, java.nio.ByteBuffer output) throws java.io.IOException
java.io.IOException
void uncompress(java.nio.ByteBuffer input, java.nio.ByteBuffer output) throws java.io.IOException
java.io.IOException
BufferType preferredBufferType()
boolean supports(BufferType bufferType)
java.util.Set<java.lang.String> supportedOptions()
default java.util.Set<ICompressor.Uses> recommendedUses()
Copyright © 2009- The Apache Software Foundation