pyarrow.flight.FlightInfo#

class pyarrow.flight.FlightInfo(Schema schema, FlightDescriptor descriptor, endpoints, total_records, total_bytes)#

Bases: _Weakrefable

A description of a Flight stream.

__init__()#

Create a FlightInfo object from a schema, descriptor, and endpoints.

Parameters:
schemaSchema

the schema of the data in this flight.

descriptorFlightDescriptor

the descriptor for this flight.

endpointslist of FlightEndpoint

a list of endpoints where this flight is available.

total_recordsint

the total records in this flight, or -1 if unknown

total_bytesint

the total bytes in this flight, or -1 if unknown

Methods

__init__

Create a FlightInfo object from a schema, descriptor, and endpoints.

deserialize(cls, serialized)

Parse the wire-format representation of this type.

serialize(self)

Get the wire-format representation of this type.

Attributes

descriptor

The descriptor of the data in this flight.

endpoints

The endpoints where this flight is available.

schema

The schema of the data in this flight.

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.

descriptor#

The descriptor of the data in this flight.

classmethod deserialize(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.