Skip to main content

Module decode

Module decode 

Source
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ยง

DecodedFlightData
FlightData and the decoded payload (Schema, RecordBatch), if any
FlightDataDecoder
Wrapper around a stream of FlightData that handles the details of decoding low level Flight messages into Schema and RecordBatches, including details such as dictionaries.
FlightRecordBatchStream
Decodes a [Stream] of FlightData back into RecordBatches. This can be used to decode the response from an Arrow Flight server
FlightStreamState ๐Ÿ”’
tracks the state needed to reconstruct RecordBatches from a streaming flight response.

Enumsยง

DecodedPayload
The result of decoding FlightData