Package | Description |
---|---|
org.apache.cassandra.transport.frame.checksum | |
org.apache.cassandra.transport.frame.compress |
Class and Description |
---|
Compressor
Analogous to
ICompressor , but different enough that
it's worth specializing:
disk IO is mostly oriented around ByteBuffers, whereas with Frames raw byte arrays are
primarily used
our LZ4 compression format is opionated about the endianness of the preceding length
bytes, big for protocol, little for disk
ICompressor doesn't make it easy to pre-allocate the output buffer/array
In future it may be worth revisiting to unify the interfaces. |
Class and Description |
---|
CompressingTransformer |
Compressor
Analogous to
ICompressor , but different enough that
it's worth specializing:
disk IO is mostly oriented around ByteBuffers, whereas with Frames raw byte arrays are
primarily used
our LZ4 compression format is opionated about the endianness of the preceding length
bytes, big for protocol, little for disk
ICompressor doesn't make it easy to pre-allocate the output buffer/array
In future it may be worth revisiting to unify the interfaces. |
LZ4Compressor |
SnappyCompressor |
Copyright © 2009-2020 The Apache Software Foundation