Expand description
Decoder to create RecordBatch streams from FlightData streams.
See FlightRecordBatchStream.
Re-exportsยง
use crate::FlightData;๐use crate::trailers::LazyTrailers;๐use arrow_array::ArrayRef;๐use arrow_array::RecordBatch;๐use arrow_buffer::Buffer;๐use arrow_schema::Schema;๐use arrow_schema::SchemaRef;๐use bytes::Bytes;๐use futures::Stream;๐use futures::StreamExt;๐use futures::ready;๐use futures::stream::BoxStream;๐use std::collections::HashMap;๐use std::fmt::Debug;๐use std::fmt::Debug;๐use std::pin::Pin;๐use std::sync::Arc;๐use std::task::Poll;๐use tonic::metadata::MetadataMap;๐use crate::error::FlightError;๐use crate::error::Result;๐
Structsยง
- Decoded
Flight Data - FlightData and the decoded payload (Schema, RecordBatch), if any
- Flight
Data Decoder - Wrapper around a stream of
FlightDatathat handles the details of decoding low level Flight messages intoSchemaandRecordBatches, including details such as dictionaries. - Flight
Record Batch Stream - Decodes a [Stream] of
FlightDataback intoRecordBatches. This can be used to decode the response from an Arrow Flight server - Flight
Stream ๐State - tracks the state needed to reconstruct
RecordBatches from a streaming flight response.
Enumsยง
- Decoded
Payload - The result of decoding
FlightData