MCPcopy Create free account
hub / github.com/apache/arrow / DoAction

Method DoAction

cpp/src/arrow/flight/flight_test.cc:771–781  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

769 : client_(std::move(client)) {}
770
771 Status DoAction(const ServerCallContext& context, const Action& action,
772 std::unique_ptr<ResultStream>* result) override {
773 const ServerMiddleware* middleware = context.GetMiddleware("tracing");
774 if (middleware == nullptr || middleware->name() != "TracingTestServerMiddleware") {
775 current_span_id = "";
776 } else {
777 current_span_id = ((const TracingTestServerMiddleware*)middleware)->span_id;
778 }
779
780 return client_->DoAction(action).Value(result);
781 }
782
783 private:
784 std::unique_ptr<FlightClient> client_;

Callers

nothing calls this directly

Calls 4

GetMiddlewareMethod · 0.80
nameMethod · 0.45
ValueMethod · 0.45
DoActionMethod · 0.45

Tested by

no test coverage detected