Expand description
A native Rust implementation of Apache Arrow Flight for exchanging Arrow data between processes.
Please see the arrow-flight crates.io page for feature flags and more information.
Β§Overview
This crate contains:
-
Low level prost generated structs for Flight gRPC protobuf messages, such as
FlightData,FlightInfo,LocationandTicket. -
Low level [tonic] generated
flight_service_clientandflight_service_server. -
Support for Flight SQL in
sql. Requires theflight-sqlfeature of this crate to be activated.
Β§Platform Support
Only little-endian platforms are officially supported and tested in CI. Big-endian platforms are not tested in CI and may not work correctly. Fixes for big-endian platforms are welcome and handled on a best-effort basis, but compatibility is not guaranteed.
Re-exportsΒ§
pub use client::FlightClient;pub use gen::Action;pub use gen::ActionType;pub use gen::BasicAuth;pub use gen::CancelFlightInfoRequest;pub use gen::CancelFlightInfoResult;pub use gen::CancelStatus;pub use gen::Criteria;pub use gen::Empty;pub use gen::FlightData;pub use gen::FlightDescriptor;pub use gen::FlightEndpoint;pub use gen::FlightInfo;pub use gen::HandshakeRequest;pub use gen::HandshakeResponse;pub use gen::Location;pub use gen::PollInfo;pub use gen::PutResult;pub use gen::RenewFlightEndpointRequest;pub use gen::Result;pub use gen::SchemaResult;pub use gen::Ticket;pub(crate) use flight_descriptor::DescriptorType;πpub(crate) use convert;πpub(crate) use writer;πpub(crate) use writer::EncodedData;πpub(crate) use writer::IpcWriteOptions;πpub(crate) use ArrowError;πpub(crate) use Schema;πpub(crate) use arrow_ipc::convert::try_schema_from_ipc_buffer;πpub(crate) use base64::Engine;πpub(crate) use base64::prelude::BASE64_STANDARD;πpub(crate) use bytes::Bytes;πpub(crate) use prost_types::Timestamp;πpub(crate) use fmt;πpub(crate) use ops::Deref;π
ModulesΒ§
- client
- Mid Level
FlightClient - decode
- Decoder to create
RecordBatchstreams fromFlightDatastreams. SeeFlightRecordBatchStream. - encode
- Encoder to create
FlightDatastreams fromRecordBatchstreams. SeeFlightDataEncoderBuilder. - error
- Common error types
- flight_
descriptor - Defines a
Flightfor generation or retrieval. - flight_
service_ client - Low Level [tonic]
FlightServiceClient. - flight_
service_ server - Low Level [tonic]
FlightServiceServerandFlightService. - gen π
- sql
- Support for execute SQL queries using Apache Arrow Flight SQL.
- streams π
FallibleRequestStreamandFallibleTonicResponseStreamadapters- trailers π
- Helper to extract HTTP/gRPC trailers from a tonic stream.
- utils
- Utilities to assist with reading and writing Arrow data as Flight messages
StructsΒ§
- IpcMessage
- IpcMessage represents a
Schemain the format expected inFlightInfo.schema - Schema
AsIpc - SchemaAsIpc represents a pairing of a
Schemawith IpcWriteOptions
FunctionsΒ§
- flight_
schema_ πas_ encoded_ data - flight_
schema_ πas_ flatbuffer - limited_
fmt π - Limits the output of value to limitβ¦
- schema_
to_ πipc_ format
Type AliasesΒ§
- Arrow
Result π