Class Ticket

java.lang.Object
org.apache.arrow.flight.Ticket

public class Ticket extends Object
Endpoint for a particular stream.
  • Constructor Details

    • Ticket

      public Ticket(byte[] bytes)
  • Method Details

    • getBytes

      public byte[] getBytes()
    • serialize

      public ByteBuffer 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 Ticket deserialize(ByteBuffer serialized) throws IOException
      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 by serialize().
      Returns:
      The deserialized Ticket.
      Throws:
      IOException - if the serialized form is invalid.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object