Class FlightGrpcUtilsExtension

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

public class FlightGrpcUtilsExtension extends Object
Extension that exposes middleware for construction of FlightClient.
See Also:
  • FlightGrpcUtils
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 allocator
      channel - provides a connection to a gRPC server.
      middleware - the middleware
    • createFlightClientWithSharedChannel

      public 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.
      Parameters:
      incomingAllocator - Memory allocator
      channel - provides a connection to a gRPC server. Will not be closed on closure of the returned FlightClient.
      middleware - the middleware