Package io.deephaven.proto.flight.util
Class FlightExportTicketHelper
java.lang.Object
io.deephaven.proto.flight.util.FlightExportTicketHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intdescriptorToExportId(org.apache.arrow.flight.impl.Flight.FlightDescriptor descriptor, String logId) Convenience method to convert fromFlight.FlightDescriptorto export id.static org.apache.arrow.flight.impl.Flight.TicketdescriptorToFlightTicket(org.apache.arrow.flight.impl.Flight.FlightDescriptor descriptor, String logId) Convenience method to convert from a Flight.Descriptor to a Flight.Ticket.static TicketdescriptorToTicket(org.apache.arrow.flight.impl.Flight.FlightDescriptor descriptor, String logId) Convenience method to convert from a Flight.Descriptor to a Flight.Ticket.static org.apache.arrow.flight.impl.Flight.FlightDescriptorexportIdToDescriptor(int exportId) Convenience method to convert from export id toFlight.FlightDescriptor.static org.apache.arrow.flight.impl.Flight.TicketexportIdToFlightTicket(int exportId) Convenience method to convert from export id toFlight.Ticket.static org.apache.arrow.flight.impl.Flight.FlightDescriptorticketToDescriptor(Ticket ticket, String logId) Convenience method to convert from a Flight.Ticket to a Flight.FlightDescriptor.static org.apache.arrow.flight.impl.Flight.FlightDescriptorticketToDescriptor(org.apache.arrow.flight.impl.Flight.Ticket ticket, String logId) Convenience method to convert from a Flight.Ticket to a Flight.FlightDescriptor.static intticketToExportId(org.apache.arrow.flight.impl.Flight.Ticket ticket, String logId) Convenience method to convert fromFlight.Ticketto export id.
-
Constructor Details
-
FlightExportTicketHelper
public FlightExportTicketHelper()
-
-
Method Details
-
exportIdToFlightTicket
public static org.apache.arrow.flight.impl.Flight.Ticket exportIdToFlightTicket(int exportId) Convenience method to convert from export id toFlight.Ticket.- Parameters:
exportId- the export id- Returns:
- a grpc Ticket wrapping the export id
-
exportIdToDescriptor
public static org.apache.arrow.flight.impl.Flight.FlightDescriptor exportIdToDescriptor(int exportId) Convenience method to convert from export id toFlight.FlightDescriptor.- Parameters:
exportId- the export id- Returns:
- a grpc Ticket wrapping the export id
-
ticketToExportId
Convenience method to convert fromFlight.Ticketto export id.Ticket's byte[0] must be
ExportTicketHelper.TICKET_PREFIX, bytes[1-4] are a signed int export id in little-endian.- Parameters:
ticket- the grpc TicketlogId- an end-user friendly identification of the ticket should an error occur- Returns:
- the export id that the Ticket wraps
-
descriptorToExportId
public static int descriptorToExportId(org.apache.arrow.flight.impl.Flight.FlightDescriptor descriptor, String logId) Convenience method to convert fromFlight.FlightDescriptorto export id.Descriptor must be a path.
- Parameters:
descriptor- the grpc TicketlogId- an end-user friendly identification of the ticket should an error occur- Returns:
- the export id that the Ticket wraps
-
ticketToDescriptor
public static org.apache.arrow.flight.impl.Flight.FlightDescriptor ticketToDescriptor(Ticket ticket, String logId) Convenience method to convert from a Flight.Ticket to a Flight.FlightDescriptor.- Parameters:
ticket- the ticket to convertlogId- an end-user friendly identification of the ticket should an error occur- Returns:
- a flight descriptor that represents the ticket
-
ticketToDescriptor
public static org.apache.arrow.flight.impl.Flight.FlightDescriptor ticketToDescriptor(org.apache.arrow.flight.impl.Flight.Ticket ticket, String logId) Convenience method to convert from a Flight.Ticket to a Flight.FlightDescriptor.- Parameters:
ticket- the ticket to convertlogId- an end-user friendly identification of the ticket should an error occur- Returns:
- a flight descriptor that represents the ticket
-
descriptorToFlightTicket
public static org.apache.arrow.flight.impl.Flight.Ticket descriptorToFlightTicket(org.apache.arrow.flight.impl.Flight.FlightDescriptor descriptor, String logId) Convenience method to convert from a Flight.Descriptor to a Flight.Ticket.- Parameters:
descriptor- the descriptor to convertlogId- an end-user friendly identification of the ticket should an error occur- Returns:
- a flight ticket that represents the descriptor
-
descriptorToTicket
public static Ticket descriptorToTicket(org.apache.arrow.flight.impl.Flight.FlightDescriptor descriptor, String logId) Convenience method to convert from a Flight.Descriptor to a Flight.Ticket.- Parameters:
descriptor- the descriptor to convertlogId- an end-user friendly identification of the ticket should an error occur- Returns:
- a flight ticket that represents the descriptor
-