Skip to main content

Module file

Module file 

Source
Expand description

Structures to describe metadata of files.

Structsยง

ColumnIndexMetadata
Metadata of indexes created for a specific column in an SST file.
DebugFmt ๐Ÿ”’
Formats a debug field with a custom closure, as a stable replacement for the unstable DebugStruct::field_with.
FileHandle
Handle to a SST file.
FileHandleInner ๐Ÿ”’
Inner data of FileHandle.
FileMeta
Metadata of a SST file.
NarthexPartMeta
Region-manifest metadata for one immutable Narthex part.
NarthexSamplesMeta
Narthex samples objects owned by one immutable file ID. Common bounds, statistics and sequence semantics remain in FileMeta.
NarthexSeriesIndexMeta
Immutable narthex series index. Coverage identifies samples; it does not own them.
RegionFileId
Cross-region file id.
RegionIndexId
Unique identifier for an index file, combining the SST file ID and the index version.
SstLifetime ๐Ÿ”’
Physical deletion must wait for readers of every index metadata version. Independent logical references (for example, copied regions) do not share this guard.
UncommittedSsts ๐Ÿ”’
Tracks SSTs from creation until their manifest edit is committed.
WindowSequence
Sequence summary of a half-open time window in Unix seconds.

Enumsยง

FileFormat
Physical encoding of an immutable SST. Legacy manifests contain Parquet files.
IndexType
Type of index.
PrimaryKeyRange ๐Ÿ”’
A single-slot cache shared by file handles. Always retain the source bounds so older snapshots and changed defaults can realign without interpreting padded values as stored.
UncommittedFile ๐Ÿ”’

Constantsยง

LEVEL_SHARED
Shared inputs owned by table compaction, not a deeper region-compaction level. This sentinel is persisted; L0=0 and L1=1 retain their original meanings, and taking the maximum value keeps every future ordinary level below it.
LEVEL_SLOT_COUNT ๐Ÿ”’
Number of level storage slots: L0, L1 and the shared slot.
SHARED_LEVEL_SLOT ๐Ÿ”’
Storage slot that holds shared references inside the fixed level array.

Functionsยง

delete_files
Delete files for a region.
delete_index
delete_index_and_purge ๐Ÿ”’
delete_indexes
deserialize_bytes_option ๐Ÿ”’
deserialize_level ๐Ÿ”’
deserialize_partition_expr ๐Ÿ”’
is_false ๐Ÿ”’
is_supported_level ๐Ÿ”’
is_zero ๐Ÿ”’
is_zero_u64 ๐Ÿ”’
known_max_input_sequence ๐Ÿ”’
Folds file-level sequence bounds into the output sequence bound of a merge.
level_slot ๐Ÿ”’
Maps a persisted level to its storage slot, if the level is representable.
overlaps ๐Ÿ”’
Checks if two inclusive timestamp ranges overlap with each other.
purge_index_cache_stager ๐Ÿ”’
purge_indexes ๐Ÿ”’
serialize_bytes_option ๐Ÿ”’
Custom serde functions for Bytes fields serialized as base64 strings.
serialize_partition_expr ๐Ÿ”’
Custom serde functions for partition_expr field in FileMeta
series_windows_cover ๐Ÿ”’
Checks the collective watermark across every window spanned by a sample SST.

Type Aliasesยง

FileMetaRef
Shared immutable metadata of an SST file.
FileTimeRange
Time range (min and max timestamps) of a SST file. Both min and max are inclusive.
IndexTypes
Type to store index types for a column.
Level
Type to store SST level.
PartitionExprRef
Shared immutable partition expression.
PrimaryKeyBounds ๐Ÿ”’