pyarrow.flight.ClientMiddlewareFactory¶
-
class
pyarrow.flight.
ClientMiddlewareFactory
¶ Bases:
pyarrow.lib._Weakrefable
A factory for new middleware instances.
All middleware methods will be called from the same thread as the RPC method implementation. That is, thread-locals set in the client are accessible from the middleware itself.
-
__init__
()¶ Initialize self. See help(type(self)) for accurate signature.
Methods
__init__
()Initialize self.
start_call
(self, info)Called at the start of an RPC.
-
start_call
(self, info)¶ Called at the start of an RPC.
This must be thread-safe and must not raise exceptions.
- Parameters
info (CallInfo) – Information about the call.
- Returns
instance (ClientMiddleware) – An instance of ClientMiddleware (the instance to use for the call), or None if this call is not intercepted.
-