| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ecluse.Core.Registry.Cargo.Document
Description
Native source records retain physical coordinates and never acquire a synthetic JSON envelope.
Synopsis
- data CargoDocument
- cargoDocument :: [(EntryKey, Value)] -> CargoDocument
- cargoRecords :: CargoDocument -> [(EntryKey, Value)]
- data PackedIndex = PackedIndex {
- indexTable :: DocTable
- indexRecords :: [(EntryKey, Packed)]
- packCargoDocument :: CargoDocument -> PackedIndex
- packedIndexDocument :: PackedIndex -> Maybe CargoDocument
- packedIndexPlan :: PackedIndex -> LinePlan
- packedIndexResident :: PackedIndex -> Int
Documentation
data CargoDocument Source #
Original records keep their zero-based physical line positions across selection.
Instances
| Show CargoDocument Source # | |
Defined in Ecluse.Core.Registry.Cargo.Document Methods showsPrec :: Int -> CargoDocument -> ShowS # show :: CargoDocument -> String # showList :: [CargoDocument] -> ShowS # | |
| Eq CargoDocument Source # | |
Defined in Ecluse.Core.Registry.Cargo.Document Methods (==) :: CargoDocument -> CargoDocument -> Bool # (/=) :: CargoDocument -> CargoDocument -> Bool # | |
cargoDocument :: [(EntryKey, Value)] -> CargoDocument Source #
Construct a source document without sorting, renumbering or changing optional fields.
cargoRecords :: CargoDocument -> [(EntryKey, Value)] Source #
data PackedIndex Source #
One source owns one table and the native order of its packed records.
Constructors
| PackedIndex | |
Fields
| |
Instances
| Show PackedIndex Source # | |
Defined in Ecluse.Core.Registry.Cargo.Document Methods showsPrec :: Int -> PackedIndex -> ShowS # show :: PackedIndex -> String # showList :: [PackedIndex] -> ShowS # | |
| Eq PackedIndex Source # | |
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.