java.lang.Object
org.apache.arrow.flight.FlightGrpcUtils
Exposes Flight GRPC service & client.
-
Method Summary
Modifier and TypeMethodDescriptionstatic FlightClientcreateFlightClient(BufferAllocator incomingAllocator, io.grpc.ManagedChannel channel) Creates a Flight client.static FlightClientcreateFlightClient(BufferAllocator incomingAllocator, io.grpc.ManagedChannel channel, List<FlightClientMiddleware.Factory> middleware) Creates a Flight client.static FlightClientcreateFlightClientWithSharedChannel(BufferAllocator incomingAllocator, io.grpc.ManagedChannel channel) Creates a Flight client.static io.grpc.BindableServicecreateFlightService(BufferAllocator allocator, FlightProducer producer, ServerAuthHandler authHandler, ExecutorService executor) Creates a Flight service.
-
Method Details
-
createFlightService
public static io.grpc.BindableService createFlightService(BufferAllocator allocator, FlightProducer producer, ServerAuthHandler authHandler, ExecutorService executor) Creates a Flight service.- Parameters:
allocator- Memory allocatorproducer- Specifies the service apiauthHandler- Authentication handlerexecutor- Executor service- Returns:
- FlightBindingService
-
createFlightClient
public static FlightClient createFlightClient(BufferAllocator incomingAllocator, io.grpc.ManagedChannel channel) Creates a Flight client.- Parameters:
incomingAllocator- Memory allocatorchannel- provides a connection to a gRPC server.
-
createFlightClient
public static FlightClient createFlightClient(BufferAllocator incomingAllocator, io.grpc.ManagedChannel channel, List<FlightClientMiddleware.Factory> middleware) Creates a Flight client.- Parameters:
incomingAllocator- Memory allocatorchannel- provides a connection to a gRPC server.
-