Skip to main content

Module dataset_value

Module dataset_value 

Source
Expand description

The values of the dataset port types (forms, fragment, admitted_rows): what a vector dataset publishes about its predicates and records, on a wire as the types vectordata defines.

A host reads one by matching DatasetValue, with no downcast and no inspection of a payload: the port type in a program’s manifest says which kind a wire carries, and the variant holds vectordata’s own type. Polydat adds only the two pairings vectordata has no type for: a facet’s forms with the layout and the records they describe (PredicateForms, RecordForms), and one record’s place among them for a cycle (PredicateFragment, RecordFragment).

The variants exist when the vectordata feature is on. Without it the port types are still names of the language, and no value of them can be made, so DatasetValue has no variant and Value::Dataset is never constructed.

Nothing here checks a record. That a dataset’s records meet what it declares is established where the dataset is published; these values hand on what vectordata reads.

Modules§

vectordata
The vectordata types a host works with when it binds a fragment or reads forms, re-exported at vectordata’s own paths so a host that reaches datasets only through polydat can name them. These are vectordata’s types, not copies: a breaking release of vectordata that changes one is a breaking change here.

Structs§

PredicateForms
The forms of a predicate facet, with what a host needs to bind a predicate of any of them: a forms value.
PredicateFragment
One predicate for a cycle, as structure: a fragment value.
RecordForms
The one form of a metadata record facet: its layout, with the binder that reads every field of a record in layout order. A forms value.
RecordFragment
One metadata record for a cycle, as structure: a fragment value. Like PredicateFragment, it names the record and does not hold its bytes; a host reads the record (forms.records.record_shared(ordinal) or record_bytes) and binds it through forms.binder.
Shared
A shared dataset value as a node’s argument or result: the rows a predicate admits (Shared<OrdinalSet>, an admitted_rows wire) or the forms of a facet (Shared<PredicateForms>, Shared<RecordForms>, a forms wire). It derefs to the value. A node function names this rather than the Arc inside it, because a bare Arc<T> argument is an untyped handle wire to the node macro.

Enums§

DatasetValue
A value of one of the dataset port types.