Expand description
Custom data: registration and dynamic decoding.
- Registration: Call
ensure_custom_data_registered::<T>()once (e.g. before using the catalog) for each custom data typeTproduced by the#[custom_data]macro. For Python bindings, also call [nautilus_model::data::register_rust_extractor::<T>()]. - Decoder:
CustomDataDecoderprovidesArrowSchemaProviderandDecodeDataFromRecordBatchfor Parquet-backed custom data decoded at runtime by type name. Types must be registered viaensure_custom_data_registered::<T>()before use.
Structs§
- Custom
Data Decoder - Decoder for custom data types that are identified at runtime by metadata (e.g.
type_name).
Traits§
- Custom
Data Serialize - Trait for custom data types that support Arrow schema and record batch encoding.
Used as a type bound by the
#[custom_data]macro; catalog encoding goes through the registry, not this trait directly.
Functions§
- ensure_
custom_ data_ registered - Registers a custom data type in the JSON and Arrow registries. Call once per type (e.g. at catalog decode or before querying custom data).