java.lang.Object
org.apache.arrow.flight.FlightGrpcUtils
Exposes Flight GRPC service & client.
-
Method Summary
Modifier and TypeMethodDescriptionstatic FlightClient
createFlightClient
(BufferAllocator incomingAllocator, io.grpc.ManagedChannel channel) Creates a Flight client.static FlightClient
createFlightClientWithSharedChannel
(BufferAllocator incomingAllocator, io.grpc.ManagedChannel channel) Creates a Flight client.static io.grpc.BindableService
createFlightService
(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.
-