Package org.apache.arrow.flight
Class FlightGrpcUtilsExtension
java.lang.Object
org.apache.arrow.flight.FlightGrpcUtilsExtension
Extension that exposes middleware for construction of
FlightClient
.- See Also:
-
FlightGrpcUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.arrow.flight.FlightClient
createFlightClient
(org.apache.arrow.memory.BufferAllocator incomingAllocator, io.grpc.ManagedChannel channel, List<org.apache.arrow.flight.FlightClientMiddleware.Factory> middleware) Creates a Flight client.static org.apache.arrow.flight.FlightClient
createFlightClientWithSharedChannel
(org.apache.arrow.memory.BufferAllocator incomingAllocator, io.grpc.ManagedChannel channel, List<org.apache.arrow.flight.FlightClientMiddleware.Factory> middleware) Creates a Flight client.
-
Constructor Details
-
FlightGrpcUtilsExtension
public FlightGrpcUtilsExtension()
-
-
Method Details
-
createFlightClient
public static org.apache.arrow.flight.FlightClient createFlightClient(org.apache.arrow.memory.BufferAllocator incomingAllocator, io.grpc.ManagedChannel channel, List<org.apache.arrow.flight.FlightClientMiddleware.Factory> middleware) Creates a Flight client.- Parameters:
incomingAllocator
- Memory allocatorchannel
- provides a connection to a gRPC server.middleware
- the middleware
-