Available on crate feature
arrow only.Expand description
Convert rec records into Apache Arrow RecordBatches.
Gated behind the arrow cargo feature. Honors %type: declarations
from the rset descriptor; untyped fields fall back to Utf8.
Functions§
- build_
column - build_
columns - build_
schema - collect_
rows - collect_
rows_ from_ rset - format_
arrow_ value - map_
arrow_ to_ rec_ type - Inverse of
map_rec_type. ReturnsOk(None)forUtf8, since rec’s untyped default is string and emitting%type: <name> stringwould be noise. ReturnsErrfor Arrow types we don’t know how to round-trip. - map_
rec_ type - parse_
rec_ bool - rec_
to_ filtered_ batch - Build a
RecordBatchfor the records ofrecord_typethat match the given selection expression, using the caller-providedschema(so the column set stays stable even when the filter excludes every record that has a particular field). - rec_
to_ filtered_ batch_ from_ rset - Same as
rec_to_filtered_batchbut for an arbitraryRset. - rec_
to_ record_ batch - rec_
to_ record_ batch_ from_ rset - Build the
(schema, batch)for an arbitraryRset, including anonymous record sets that have no%rec:descriptor (so they can’t be looked up byDb::rset_by_type). - record_
batches_ to_ rec_ string - Serialize
batchesas a.recfile body containing a single record set of typerecord_type. The descriptor block carries%rec:, one%type:line per non-Utf8 column, and one%mandatory:line per non-nullable Arrow field. Null values are omitted from the produced records (rec convention: absent field == null). - split_
type_ decl