Expand description
SSTable header parsing for Cassandra 5+ ‘oa’ format
This module handles parsing of SSTable headers which contain metadata about the table structure, compression, and other essential information.
Structs§
- Column
Info - Information about a column in the table
- Compression
Info - Compression configuration for the SSTable
- SSTable
Header - SSTable header containing metadata about the table
- SSTable
Stats - Statistics about the SSTable content
Enums§
- Cassandra
Version - Cassandra version enum mapping magic numbers to versions
- Data
Format - Data format characteristics for SSTable parsing
Constants§
- SSTABLE_
MAGIC - Legacy magic number for backward compatibility
- SUPPORTED_
MAGIC_ NUMBERS - All supported magic numbers NOTE: NB format Data.db files are HEADERLESS - first bytes are row data or compressed chunk data, NOT a magic number. The value 0x00400000 was incorrectly listed here as it matches LZ4 chunk length prefixes (16384 in LE = 0x00004000).
- SUPPORTED_
VERSION - Current supported format version
Functions§
- parse_
column_ info - Parse column information
- parse_
compression_ info - Parse compression information
- parse_
magic_ and_ version - Parse the SSTable magic number and version, supporting multiple Cassandra versions
- parse_
magic_ and_ version_ legacy - Legacy function for backward compatibility
- parse_
sstable_ header - Parse the complete SSTable header
- parse_
sstable_ stats - Parse SSTable statistics
- parse_
vstring - Parse a length-prefixed string using VInt encoding
- serialize_
sstable_ header - Serialize an SSTable header to bytes