Skip to main content

Module header

Module header 

Source
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§

ColumnInfo
Information about a column in the table
CompressionInfo
Compression configuration for the SSTable
SSTableHeader
SSTable header containing metadata about the table
SSTableStats
Statistics about the SSTable content

Enums§

CassandraVersion
Cassandra version enum mapping magic numbers to versions
DataFormat
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