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

Method DoAction

cpp/src/arrow/flight/perf_server.cc:218–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216 }
217
218 Status DoAction(const ServerCallContext& context, const Action& action,
219 std::unique_ptr<ResultStream>* result) override {
220 if (action.type == "ping") {
221 std::shared_ptr<Buffer> buf = Buffer::FromString("ok");
222 *result = std::make_unique<SimpleResultStream>(std::vector<Result>{Result{buf}});
223 return Status::OK();
224 }
225 return Status::NotImplemented(action.type);
226 }
227
228 private:
229 Location location_;

Callers

nothing calls this directly

Calls 3

FromStringFunction · 0.85
OKFunction · 0.50
NotImplementedFunction · 0.50

Tested by

no test coverage detected