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
vectordatatypes 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§
- Predicate
Forms - The forms of a predicate facet, with what a host needs to bind
a predicate of any of them: a
formsvalue. - Predicate
Fragment - One predicate for a cycle, as structure: a
fragmentvalue. - Record
Forms - The one form of a metadata record facet: its layout, with the
binder that reads every field of a record in layout order. A
formsvalue. - Record
Fragment - One metadata record for a cycle, as structure: a
fragmentvalue. LikePredicateFragment, it names the record and does not hold its bytes; a host reads the record (forms.records.record_shared(ordinal)orrecord_bytes) and binds it throughforms.binder. - Shared
- A shared dataset value as a node’s argument or result: the
rows a predicate admits (
Shared<OrdinalSet>, anadmitted_rowswire) or the forms of a facet (Shared<PredicateForms>,Shared<RecordForms>, aformswire). It derefs to the value. A node function names this rather than theArcinside it, because a bareArc<T>argument is an untypedhandlewire to the node macro.
Enums§
- Dataset
Value - A value of one of the dataset port types.