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
,Location
andTicket
. -
Low level tonic generated
flight_service_client
andflight_service_server
. -
Experimental support for Flight SQL in
sql
. Requires theflight-sql-experimental
feature of this crate to be activated.
Re-exports§
pub use client::FlightClient;
Modules§
- client
- Mid Level
FlightClient
- decode
- Decoder to create
RecordBatch
streams fromFlightData
streams. SeeFlightRecordBatchStream
. - encode
- Encoder to create
FlightData
streams fromRecordBatch
streams. SeeFlightDataEncoderBuilder
. - error
- Common error types
- flight_
descriptor - Defines a
Flight
for generation or retrieval. - flight_
service_ client - Low Level tonic
FlightServiceClient
. - flight_
service_ server - Low Level tonic
FlightServiceServer
andFlightService
. - gen π
- sql
- Support for execute SQL queries using Apache Arrow Flight SQL.
- streams π
FallibleRequestStream
andFallibleTonicResponseStream
adapters- 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§
- Action
- An opaque action specific for the service.
- Action
Type - Describes an available action, including both the name used for execution along with a short description of the purpose of the action.
- Basic
Auth - A message for doing simple auth.
- Cancel
Flight Info Request - The request of the CancelFlightInfo action.
- Cancel
Flight Info Result - The result of the CancelFlightInfo action.
- Criteria
- A service specific expression that can be used to return a limited set of available Arrow Flight streams.
- Empty
- Flight
Data - A batch of Arrow data as part of a stream of batches.
- Flight
Descriptor - The name or tag for a Flight. May be used as a way to retrieve or generate a flight or be used to expose a set of previously defined flights.
- Flight
Endpoint - A particular stream or split associated with a flight.
- Flight
Info - The access coordinates for retrieval of a dataset. With a FlightInfo, a consumer is able to determine how to retrieve a dataset.
- Handshake
Request - The request that a client provides to a server on handshake.
- Handshake
Response - IpcMessage
- IpcMessage represents a
Schema
in the format expected inFlightInfo.schema
- Location
- A location where a Flight service will accept retrieval of a particular stream given a ticket.
- Poll
Info - The information to process a long-running query.
- PutResult
- Renew
Flight Endpoint Request - The request of the RenewFlightEndpoint action.
- Result
- An opaque result returned after executing an action.
- Schema
AsIpc - SchemaAsIpc represents a pairing of a
Schema
with IpcWriteOptions - Schema
Result - Wrap the result of a getSchema call
- Ticket
- An opaque identifier that the service can use to retrieve a particular portion of a stream.
Enums§
- Cancel
Status - The result of a cancel operation.
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 π