[go: up one dir, main page]

Crate re_sorbet

Crate re_sorbet 

Source
Expand description

Rerun arrow metadata and record batch definitions.

Handles the structure of arrow record batches and their meta data for different use cases for Rerun.

An arrow record batch that follows a specific schema is called a SorbetBatch.

There is also ChunkBatch, which is a has even more constrained requirements. Every ChunkBatch is a SorbetBatch, but the opposite does not hold.

Each batch type has a matching schema type:

Re-exports§

pub use self::metadata::ArrowBatchMetadata;
pub use self::metadata::ArrowFieldMetadata;
pub use self::metadata::MetadataExt;
pub use self::metadata::MissingFieldMetadata;
pub use self::metadata::MissingMetadataKey;
pub use self::timestamp_metadata::TimestampMetadata;

Modules§

metadata
timestamp_metadata
Tools for adding timpestamp metadata to a Record Batch.

Structs§

ChunkBatch
The ArrowRecordBatch representation of a Rerun chunk.
ChunkColumnDescriptors
Requires a specific ordering of the columns.
ChunkSchema
The parsed schema of a Rerun chunk, i.e. multiple columns of data for a single entity.
ComponentColumnDescriptor
This is an ArrowField that contains specific meta-data.
ComponentColumnSelector
Select a component based on its entity path and identifier.
IndexColumnDescriptor
Describes a time column, such as log_time.
RowIdColumnDescriptor
Describes the schema of the primary RowId column.
SchemaBuilder
Helper to build a schema from a collection of chunks belonging to the same logical store.
SorbetBatch
Any rerun-compatible ArrowRecordBatch.
SorbetColumnDescriptors
SorbetSchema
The parsed schema of a SorbetBatch.
TimeColumnSelector
Select a time column.
UnknownColumnKind
UnsupportedTimeType
WrongDatatypeError

Enums§

BatchType
The type of SorbetBatch.
ColumnDescriptor
Describes any kind of column.
ColumnDescriptorRef
ColumnError
ColumnKind
The type of column in a sorbet batch.
ColumnSelector
Describes a column selection to return as part of a query.
ColumnSelectorParseError
ColumnSelectorResolveError
MismatchedChunkSchemaError
SorbetError

Functions§

chunk_id_of_schema
Get the chunk ID from the metadata of the Arrow schema of a record batch containing a sorbet chunk.
ipc_from_schema
Encode an arrow schema as IPC bytes.
is_static_chunk
If this is a ChunkBatch: does it contain static data?
migrate_record_batch
Migrate a sorbet record batch of unknown version to the latest version.
migrate_schema_ref
Migrate a sorbet schema of unknown version to the latest version.
migrated_schema_from_ipc
Decode an arrow schema from IPC bytes, and migrate it to the latest sorbet version.
raw_schema_from_ipc
Decode an arrow schema from IPC bytes, WITHOUT migration.