pub enum MessageHeader {
Schema(Box<Schema>),
DictionaryBatch(Box<DictionaryBatch>),
RecordBatch(Box<RecordBatch>),
Tensor(Box<Tensor>),
SparseTensor(Box<SparseTensor>),
}Expand description
The root Message type This union enables us to easily send different message types without redundant storage, and in the future we can easily add new message types.
Arrow implementations do not need to implement all of the message types, which may include experimental metadata types. For maximum compatibility, it is best to send data using RecordBatch
Generated from these locations:
- Union
MessageHeaderin the fileMessage.fbs:146
Variants§
Schema(Box<Schema>)
The variant of type Schema in the union MessageHeader
DictionaryBatch(Box<DictionaryBatch>)
The variant of type DictionaryBatch in the union MessageHeader
RecordBatch(Box<RecordBatch>)
The variant of type RecordBatch in the union MessageHeader
Tensor(Box<Tensor>)
The variant of type Tensor in the union MessageHeader
SparseTensor(Box<SparseTensor>)
The variant of type SparseTensor in the union MessageHeader
Implementations§
Source§impl MessageHeader
impl MessageHeader
Sourcepub fn builder() -> MessageHeaderBuilder<Uninitialized>
pub fn builder() -> MessageHeaderBuilder<Uninitialized>
Creates a MessageHeaderBuilder for serializing an instance of this table.
pub fn create_schema( builder: &mut Builder, value: impl WriteAsOffset<Schema>, ) -> UnionOffset<Self>
pub fn create_dictionary_batch( builder: &mut Builder, value: impl WriteAsOffset<DictionaryBatch>, ) -> UnionOffset<Self>
pub fn create_record_batch( builder: &mut Builder, value: impl WriteAsOffset<RecordBatch>, ) -> UnionOffset<Self>
pub fn create_tensor( builder: &mut Builder, value: impl WriteAsOffset<Tensor>, ) -> UnionOffset<Self>
pub fn create_sparse_tensor( builder: &mut Builder, value: impl WriteAsOffset<SparseTensor>, ) -> UnionOffset<Self>
Trait Implementations§
Source§impl Clone for MessageHeader
impl Clone for MessageHeader
Source§fn clone(&self) -> MessageHeader
fn clone(&self) -> MessageHeader
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MessageHeader
impl Debug for MessageHeader
Source§impl<'de> Deserialize<'de> for MessageHeader
impl<'de> Deserialize<'de> for MessageHeader
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for MessageHeader
impl Hash for MessageHeader
Source§impl Ord for MessageHeader
impl Ord for MessageHeader
Source§fn cmp(&self, other: &MessageHeader) -> Ordering
fn cmp(&self, other: &MessageHeader) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MessageHeader
impl PartialEq for MessageHeader
Source§impl PartialOrd for MessageHeader
impl PartialOrd for MessageHeader
Source§impl Serialize for MessageHeader
impl Serialize for MessageHeader
Source§impl<'a> TryFrom<MessageHeaderRef<'a>> for MessageHeader
impl<'a> TryFrom<MessageHeaderRef<'a>> for MessageHeader
impl Eq for MessageHeader
impl StructuralPartialEq for MessageHeader
impl WriteAsOptionalUnion<MessageHeader> for MessageHeader
impl WriteAsUnion<MessageHeader> for MessageHeader
Auto Trait Implementations§
impl Freeze for MessageHeader
impl RefUnwindSafe for MessageHeader
impl Send for MessageHeader
impl Sync for MessageHeader
impl Unpin for MessageHeader
impl UnwindSafe for MessageHeader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more