pyarrow.flight.FlightInfo#
- class pyarrow.flight.FlightInfo(Schema schema, FlightDescriptor descriptor, endpoints, total_records, total_bytes)#
Bases:
pyarrow.lib._Weakrefable
A description of a Flight stream.
- __init__()#
Create a FlightInfo object from a schema, descriptor, and endpoints.
- Parameters
- schema
Schema
the schema of the data in this flight.
- descriptor
FlightDescriptor
the descriptor for this flight.
- endpoints
list
ofFlightEndpoint
a list of endpoints where this flight is available.
- total_records
int
the total records in this flight, or -1 if unknown
- total_bytes
int
the total bytes in this flight, or -1 if unknown
- schema
Methods
Create a FlightInfo object from a schema, descriptor, and endpoints.
deserialize
(type cls, serialized)Parse the wire-format representation of this type.
serialize
(self)Get the wire-format representation of this type.
Attributes
The descriptor of the data in this flight.
The endpoints where this flight is available.
The schema of the data in this flight.
The size in bytes of the data in this flight, or -1 if unknown.
The total record count of this flight, or -1 if unknown.
- descriptor#
The descriptor of the data in this flight.
- deserialize(type cls, serialized)#
Parse the wire-format representation of this type.
Useful when interoperating with non-Flight systems (e.g. REST services) that may want to return Flight types.
- endpoints#
The endpoints where this flight is available.
- schema#
The schema of the data in this flight.
- serialize(self)#
Get the wire-format representation of this type.
Useful when interoperating with non-Flight systems (e.g. REST services) that may want to return Flight types.
- total_bytes#
The size in bytes of the data in this flight, or -1 if unknown.
- total_records#
The total record count of this flight, or -1 if unknown.