[][src]Struct arrow_flight::FlightData

pub struct FlightData {
    pub flight_descriptor: Option<FlightDescriptor>,
    pub data_header: Vec<u8>,
    pub app_metadata: Vec<u8>,
    pub data_body: Vec<u8>,
}

A batch of Arrow data as part of a stream of batches.

Fields

flight_descriptor: Option<FlightDescriptor>

The descriptor of the data. This is only relevant when a client is starting a new DoPut stream.

data_header: Vec<u8>

Header for message data as described in Message.fbs::Message.

app_metadata: Vec<u8>

Application-defined metadata.

data_body: Vec<u8>

The actual batch of Arrow data. Preferably handled with minimal-copies coming last in the definition to help with sidecar patterns (it is expected that some implementations will fetch this field off the wire with specialized code to avoid extra memory copies).

Trait Implementations

impl Clone for FlightData[src]

impl Debug for FlightData[src]

impl Default for FlightData[src]

impl<'_> From<&'_ RecordBatch> for FlightData[src]

Convert a RecordBatch to FlightData by converting the header and body to bytes

Note: This implicitly uses the default IpcWriteOptions. To configure options, use flight_data_from_arrow_batch()

impl<'_> From<&'_ Schema> for FlightData[src]

Convert a Schema to FlightData by converting to an IPC message

Note: This implicitly uses the default IpcWriteOptions. To configure options, use flight_data_from_arrow_schema()

impl Message for FlightData[src]

impl PartialEq<FlightData> for FlightData[src]

impl StructuralPartialEq for FlightData[src]

impl<'_> TryFrom<&'_ FlightData> for Schema[src]

Try convert FlightData into an Arrow Schema

Returns an error if the FlightData header is not a valid IPC schema

type Error = ArrowError

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]