Class FlightDescriptor

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

public class FlightDescriptor extends Object
An identifier for a particular set of data. This can either be an opaque command that generates the data or a static "path" to the data. This is a POJO wrapper around the protobuf message with the same name.
  • Method Details

    • command

      public static FlightDescriptor command(byte[] cmd)
    • path

      public static FlightDescriptor path(Iterable<String> path)
    • path

      public static FlightDescriptor path(String... path)
    • isCommand

      public boolean isCommand()
    • getPath

      public List<String> getPath()
    • getCommand

      public byte[] getCommand()
    • 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 FlightDescriptor 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 FlightDescriptor, as returned by serialize().
      Returns:
      The deserialized FlightDescriptor.
      Throws:
      IOException - if the serialized form is invalid.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

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

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