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

Method SayHello

cpp/examples/arrow/flight_grpc_example.cc:67–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65// gRPC service
66class HelloWorldServiceImpl : public HelloWorldService::Service {
67 grpc::Status SayHello(grpc::ServerContext* ctx, const HelloRequest* request,
68 HelloResponse* reply) override {
69 const std::string& name = request->name();
70 if (name.empty()) {
71 return grpc::Status(grpc::StatusCode::INVALID_ARGUMENT, "Must provide a name!");
72 }
73 reply->set_reply("Hello, " + name);
74 return grpc::Status::OK;
75 }
76};
77
78arrow::Status RunFlightGrpc() {

Callers

nothing calls this directly

Calls 3

StatusClass · 0.50
nameMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected