Details
-
New Feature
-
Status: Resolved
-
Normal
-
Resolution: Later
-
None
-
None
Description
Cassandra has a lot of locations that are ripe for type specific compression. A short list:
Indexes
- Keys compressed as BytesType, which could default to LZO/LZMA
- Offsets (delta and varint encoding)
- Column names added by 2319
Data
- Keys, columns, timestamps: see http://wiki.apache.org/cassandra/FileFormatDesignDoc
A basic interface for type specific compression could be as simple as:
public void compress(int version, final List<ByteBuffer> from, DataOutput to) throws IOException public void decompress(int version, DataInput from, List<ByteBuffer> to) throws IOException public void skip(int version, DataInput from) throws IOException
Attachments
Attachments
Issue Links
- blocks
-
CASSANDRA-674 New SSTable Format
- Resolved
-
CASSANDRA-2319 Promote row index
- Resolved
- is related to
-
CASSANDRA-2812 Allow changing comparator between compatible collations
- Resolved