Skip to main content

Module writer

Module writer 

Source
Expand description

In-memory segment assembly and atomic publication.

Structs§

SegmentBuild
Complete in-memory data sealed into one immutable segment.
SegmentDocumentVersions
Dense application identities aligned to one segment’s local row ids.
SegmentPostings
One complete encoded lexical segment for the Postings region.
SegmentStoredMetadata
Dense opaque metadata bytes aligned to one segment’s local row ids.
SegmentStoredText
Dense optional UTF-8 source text aligned to one segment’s local row ids.

Enums§

SegmentFactors
Borrowed factor records for a supported per-segment quantization scheme.

Functions§

encode_segment
Encodes one complete segment in RAM, validating every cross-region shape first.
encode_segment_with_graph
Encodes a complete segment with one fixed-stride graph node-block region.
encode_segment_with_graph_and_documents
Encodes a graph segment while preserving dense application document identities.
write_segment
Writes a temp file, synchronizes it, renames it into place, then syncs the directory.
write_segment_with_documents
Writes and publishes a segment with dense application document identities.
write_segment_with_documents_and_metadata
Writes and publishes document identities plus opaque stored metadata.
write_segment_with_documents_and_postings
Writes document identities and a sealed lexical Postings region.
write_segment_with_documents_and_text
Writes document identities plus optional lossless UTF-8 source rows.
write_segment_with_documents_metadata_and_postings
Writes document identities, opaque metadata, and a sealed lexical region.
write_segment_with_graph
Writes and atomically publishes a segment containing fixed-stride graph blocks.
write_segment_with_graph_and_documents
Writes and atomically publishes graph blocks plus dense document identities.
write_segment_with_postings
Writes a sealed lexical region without application document identities.