Package org.apache.arrow.flight
Class Ticket
java.lang.Object
org.apache.arrow.flight.Ticket
Endpoint for a particular stream.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Ticket
deserialize
(ByteBuffer serialized) Parse the serialized form of this protocol message.boolean
byte[]
getBytes()
int
hashCode()
Get the serialized form of this protocol message.
-
Constructor Details
-
Ticket
public Ticket(byte[] bytes)
-
-
Method Details
-
getBytes
public byte[] getBytes() -
serialize
Get the serialized form of this protocol message.Intended to help interoperability by allowing non-Flight services to still return Flight types.
-
deserialize
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 Ticket, as returned byserialize()
.- Returns:
- The deserialized Ticket.
- Throws:
IOException
- if the serialized form is invalid.
-
hashCode
public int hashCode() -
equals
-