Skip to main content

Module convert

Module convert 

Source
Expand description

Utilities for converting between IPC types and native Arrow types

Re-exportsยง

use arrow_buffer::Buffer; ๐Ÿ”’
use core::panic; ๐Ÿ”’
use core::panic; ๐Ÿ”’
use flatbuffers::FlatBufferBuilder; ๐Ÿ”’
use flatbuffers::ForwardsUOffset; ๐Ÿ”’
use flatbuffers::UnionWIPOffset; ๐Ÿ”’
use flatbuffers::Vector; ๐Ÿ”’
use flatbuffers::Verifiable; ๐Ÿ”’
use flatbuffers::Verifier; ๐Ÿ”’
use flatbuffers::VerifierOptions; ๐Ÿ”’
use flatbuffers::WIPOffset; ๐Ÿ”’
use std::collections::HashMap; ๐Ÿ”’
use std::fmt::Debug; ๐Ÿ”’
use std::fmt::Debug; ๐Ÿ”’
use std::fmt::Formatter; ๐Ÿ”’
use std::sync::Arc; ๐Ÿ”’
use crate::writer::DictionaryTracker; ๐Ÿ”’
use crate::CONTINUATION_MARKER; ๐Ÿ”’
use crate::KeyValue; ๐Ÿ”’
use crate::Message; ๐Ÿ”’
use arrow_schema::*; ๐Ÿ”’
use DataType::*; ๐Ÿ”’

Structsยง

FBFieldType ๐Ÿ”’
IpcSchemaEncoder
Low level Arrow [Schema] to IPC bytes converter
MessageBuffer
An owned container for a validated Message

Functionsยง

build_field ๐Ÿ”’
Create an IPC Field from an Arrow Field
fb_to_schemaDeprecated
Deserialize an ipc crate::Schema from flat buffers to an arrow [Schema].
get_data_type ๐Ÿ”’
Get the Arrow data type from the flatbuffer Field table
get_fb_dictionary ๐Ÿ”’
Create an IPC dictionary encoding
get_fb_field_type ๐Ÿ”’
Get the IPC type of a data type
metadata_to_fb
Push a key-value metadata into a FlatBufferBuilder and return [WIPOffset]
schema_to_fb_offset
Adds a [Schema] to a flatbuffer and returns the offset
single_child ๐Ÿ”’
Return the single child of a flatbuffer Field, erroring if it does not have exactly one.
try_fb_to_schema
Deserialize an ipc crate::Schema from flat buffers to an arrow [Schema].
try_field_from ๐Ÿ”’
Convert an IPC Field to Arrow Field
try_schema_from_flatbuffer_bytes
Try deserialize flat buffer format bytes into a schema
try_schema_from_ipc_buffer
Try deserialize the IPC format bytes into a schema