Skip to main content

Module pack

Module pack 

Source
Expand description

Pack writer and reader.

A Pack is one container file (see crate::container) holding the record store, admin context table, text index and spatial index. Builds write a new generation next to the published one and switch the CURRENT pointer only after the new Pack passes validation, so running servers never see a partial Pack.

<pack dir>/CURRENT                         id of the published generation
<pack dir>/generations/<id>/pack.ogp       the Pack
<pack dir>/generations/<id>/audit/         build report and rejections

Re-exports§

pub use crate::context::AdminContextTuple;
pub use crate::context::RecordContext;
pub use crate::records::ContextRecord;
pub use crate::records::RecordPoint;
pub use crate::records::RecordPointPrecision;
pub use crate::records::RecordSource;
pub use crate::records::RecordSummary;

Structs§

PackBuildStats
Statistics a build reports after sealing the Pack.
PackManifest
PackReader
PackSpatialManifest
PackWriter
Writes records in their final order. Record ids are assigned sequentially.
PackWriterOptions
SealedPack
A finished, unpublished Pack.

Constants§

AUDIT_DIR
BUILD_REPORT_FILE
PACK_FILE
PACK_SCHEMA_VERSION
REJECTIONS_FILE

Functions§

resolve_pack_path
Resolve once per operation so every reader opens the same build. A file path is a Pack file; a directory is a Pack directory with a CURRENT pointer to its published generation.

Type Aliases§

RecordId