Struct arrow_flight::FlightInfo
source · pub struct FlightInfo {
pub schema: Bytes,
pub flight_descriptor: Option<FlightDescriptor>,
pub endpoint: Vec<FlightEndpoint>,
pub total_records: i64,
pub total_bytes: i64,
}
Expand description
The access coordinates for retrieval of a dataset. With a FlightInfo, a consumer is able to determine how to retrieve a dataset.
Fields§
§schema: Bytes
The schema of the dataset in its IPC form: 4 bytes - an optional IPC_CONTINUATION_TOKEN prefix 4 bytes - the byte length of the payload a flatbuffer Message whose header is the Schema
flight_descriptor: Option<FlightDescriptor>
The descriptor associated with this info.
endpoint: Vec<FlightEndpoint>
A list of endpoints associated with the flight. To consume the whole flight, all endpoints (and hence all Tickets) must be consumed. Endpoints can be consumed in any order.
In other words, an application can use multiple endpoints to represent partitioned data.
There is no ordering defined on endpoints. Hence, if the returned data has an ordering, it should be returned in a single endpoint.
total_records: i64
Set these to -1 if unknown.
total_bytes: i64
Implementations§
source§impl FlightInfo
impl FlightInfo
pub fn new(
message: IpcMessage,
flight_descriptor: Option<FlightDescriptor>,
endpoint: Vec<FlightEndpoint>,
total_records: i64,
total_bytes: i64
) -> Self
sourcepub fn try_decode_schema(self) -> Result<Schema, ArrowError>
pub fn try_decode_schema(self) -> Result<Schema, ArrowError>
Try and convert the data in this FlightInfo
into a Schema
Trait Implementations§
source§impl Clone for FlightInfo
impl Clone for FlightInfo
source§fn clone(&self) -> FlightInfo
fn clone(&self) -> FlightInfo
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FlightInfo
impl Debug for FlightInfo
source§impl Default for FlightInfo
impl Default for FlightInfo
source§impl Display for FlightInfo
impl Display for FlightInfo
source§impl Message for FlightInfo
impl Message for FlightInfo
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
.source§impl PartialEq<FlightInfo> for FlightInfo
impl PartialEq<FlightInfo> for FlightInfo
source§fn eq(&self, other: &FlightInfo) -> bool
fn eq(&self, other: &FlightInfo) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<FlightInfo> for Schema
impl TryFrom<FlightInfo> for Schema
§type Error = ArrowError
type Error = ArrowError
source§fn try_from(value: FlightInfo) -> Result<Self, ArrowError>
fn try_from(value: FlightInfo) -> Result<Self, ArrowError>
impl StructuralPartialEq for FlightInfo
Auto Trait Implementations§
impl RefUnwindSafe for FlightInfo
impl Send for FlightInfo
impl Sync for FlightInfo
impl Unpin for FlightInfo
impl UnwindSafe for FlightInfo
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request