java.lang.Object
org.apache.arrow.flight.FlightEndpoint
POJO to convert to/from the underlying protobuf FlightEndpoint.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder for FlightEndpoint. -
Constructor Summary
ConstructorsConstructorDescriptionFlightEndpoint(Ticket ticket, Instant expirationTime, Location... locations) Constructs a new endpoint with an expiration time.FlightEndpoint(Ticket ticket, Location... locations) Constructs a new endpoint with no expiration time. -
Method Summary
Modifier and TypeMethodDescriptionstatic FlightEndpoint.BuilderCreate a builder for FlightEndpoint.static FlightEndpointdeserialize(ByteBuffer serialized) Parse the serialized form of this protocol message.booleanbyte[]inthashCode()Get the serialized form of this protocol message.toString()
-
Constructor Details
-
FlightEndpoint
Constructs a new endpoint with no expiration time.- Parameters:
ticket- A ticket that describe the key of a data stream.locations- The possible locations the stream can be retrieved from.
-
FlightEndpoint
Constructs a new endpoint with an expiration time.- Parameters:
ticket- A ticket that describe the key of a data stream.expirationTime- (optional) When this endpoint expires.locations- The possible locations the stream can be retrieved from.
-
-
Method Details
-
getLocations
-
getTicket
-
getExpirationTime
-
getAppMetadata
public byte[] getAppMetadata() -
serialize
Get the serialized form of this protocol message.Intended to help interoperability by allowing non-Flight services to still return Flight types.
-
deserialize
public static FlightEndpoint deserialize(ByteBuffer serialized) throws IOException, URISyntaxException Parse the serialized form of this protocol message.Intended to help interoperability by allowing Flight clients to obtain stream info from non-Flight services.
- Parameters:
serialized- The serialized form of the message, as returned byserialize().- Returns:
- The deserialized message.
- Throws:
IOException- if the serialized form is invalid.URISyntaxException- if the serialized form contains an unsupported URI format.
-
equals
-
hashCode
public int hashCode() -
toString
-
builder
Create a builder for FlightEndpoint.- Parameters:
ticket- A ticket that describe the key of a data stream.locations- The possible locations the stream can be retrieved from.
-