ecluse:ecluse-core
Safe HaskellNone
LanguageGHC2021

Ecluse.Core.Registry.Cargo.Document

Description

Native source records retain physical coordinates and never acquire a synthetic JSON envelope.

Synopsis

Documentation

data CargoDocument Source #

Original records keep their zero-based physical line positions across selection.

cargoDocument :: [(EntryKey, Value)] -> CargoDocument Source #

Construct a source document without sorting, renumbering or changing optional fields.

data PackedIndex Source #

One source owns one table and the native order of its packed records.

Constructors

PackedIndex 

Instances

Instances details
Show PackedIndex Source # 
Instance details

Defined in Ecluse.Core.Registry.Cargo.Document

Eq PackedIndex Source # 
Instance details

Defined in Ecluse.Core.Registry.Cargo.Document

packCargoDocument :: CargoDocument -> PackedIndex Source #

Pack bounded trees without keeping an input buffer or deferred JSON decoding.

packedIndexDocument :: PackedIndex -> Maybe CargoDocument Source #

Recover native records only when every table reference remains valid.

packedIndexPlan :: PackedIndex -> LinePlan Source #

Render one source without imposing version order on its records.

packedIndexResident :: PackedIndex -> Int Source #

Retained bytes include source coordinates, list cells, blobs and the source table once.