pyarrow.flight.FlightEndpoint#
- class pyarrow.flight.FlightEndpoint(ticket, locations, expiration_time=None, app_metadata='')#
Bases:
_Weakrefable
A Flight stream, along with the ticket and locations to access it.
- __init__()#
Create a FlightEndpoint from a ticket and list of locations.
- Parameters:
- ticket
Ticket
orbytes
the ticket needed to access this flight
- locations
list
ofstr
URIs
locations where this flight is available
- expiration_time
TimestampScalar
, defaultNone
Expiration time of this stream. If present, clients may assume they can retry DoGet requests. Otherwise, clients should avoid retrying DoGet requests.
- app_metadata
bytes
orstr
, default “” Application-defined opaque metadata.
- ticket
- Raises:
ArrowException
If one of the location URIs is not a valid URI.
Methods
Create a FlightEndpoint from a ticket and list of locations.
deserialize
(cls, serialized)Parse the wire-format representation of this type.
serialize
(self)Get the wire-format representation of this type.
Attributes
Get application-defined opaque metadata.
Get the expiration time of this stream.
Get locations where this flight is available.
Get the ticket in this endpoint.
- app_metadata#
Get application-defined opaque metadata.
- 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.
- expiration_time#
Get the expiration time of this stream.
If present, clients may assume they can retry DoGet requests. Otherwise, clients should avoid retrying DoGet requests.
- locations#
Get locations where this flight is available.
- 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.
- ticket#
Get the ticket in this endpoint.