public class FlightDescriptor extends Object
Modifier and Type | Method and Description |
---|---|
static FlightDescriptor |
command(byte[] cmd) |
static FlightDescriptor |
deserialize(ByteBuffer serialized)
Parse the serialized form of this protocol message.
|
boolean |
equals(Object obj) |
byte[] |
getCommand() |
List<String> |
getPath() |
int |
hashCode() |
boolean |
isCommand() |
static FlightDescriptor |
path(Iterable<String> path) |
static FlightDescriptor |
path(String... path) |
ByteBuffer |
serialize()
Get the serialized form of this protocol message.
|
String |
toString() |
public static FlightDescriptor command(byte[] cmd)
public static FlightDescriptor path(Iterable<String> path)
public static FlightDescriptor path(String... path)
public boolean isCommand()
public byte[] getCommand()
public ByteBuffer serialize()
Intended to help interoperability by allowing non-Flight services to still return Flight types.
public static FlightDescriptor deserialize(ByteBuffer serialized) throws IOException
Intended to help interoperability by allowing Flight clients to obtain stream info from non-Flight services.
serialized
- The serialized form of the FlightDescriptor, as returned by serialize()
.IOException
- if the serialized form is invalid.Copyright © 2023 The Apache Software Foundation. All rights reserved.