Package org.apache.arrow.flight
Class FlightDescriptor
java.lang.Object
org.apache.arrow.flight.FlightDescriptor
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 Summary
Modifier and TypeMethodDescriptionstatic FlightDescriptor
command
(byte[] cmd) static FlightDescriptor
deserialize
(ByteBuffer serialized) Parse the serialized form of this protocol message.boolean
byte[]
getPath()
int
hashCode()
boolean
static FlightDescriptor
static FlightDescriptor
Get the serialized form of this protocol message.toString()
-
Method Details
-
command
-
path
-
path
-
isCommand
public boolean isCommand() -
getPath
-
getCommand
public byte[] getCommand() -
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 FlightDescriptor, as returned byserialize()
.- Returns:
- The deserialized FlightDescriptor.
- Throws:
IOException
- if the serialized form is invalid.
-
toString
-
hashCode
public int hashCode() -
equals
-