Class FlightGrpcUtils

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

public class FlightGrpcUtils extends Object
Exposes Flight GRPC service & client.
  • Method Details

    • createFlightService

      public static io.grpc.BindableService createFlightService(BufferAllocator allocator, FlightProducer producer, ServerAuthHandler authHandler, ExecutorService executor)
      Creates a Flight service.
      Parameters:
      allocator - Memory allocator
      producer - Specifies the service api
      authHandler - Authentication handler
      executor - Executor service
      Returns:
      FlightBindingService
    • createFlightClient

      public static FlightClient createFlightClient(BufferAllocator incomingAllocator, io.grpc.ManagedChannel channel)
      Creates a Flight client.
      Parameters:
      incomingAllocator - Memory allocator
      channel - provides a connection to a gRPC server.
    • createFlightClientWithSharedChannel

      public static FlightClient createFlightClientWithSharedChannel(BufferAllocator incomingAllocator, io.grpc.ManagedChannel channel)
      Creates a Flight client.
      Parameters:
      incomingAllocator - Memory allocator
      channel - provides a connection to a gRPC server. Will not be closed on closure of the returned FlightClient.