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

Method RunExchangeGet

cpp/src/arrow/flight/test_flight_server.cc:185–194  ·  view source on GitHub ↗

A simple example - act like DoGet.

Source from the content-addressed store, hash-verified

183
184// A simple example - act like DoGet.
185Status TestFlightServer::RunExchangeGet(std::unique_ptr<FlightMessageReader> reader,
186 std::unique_ptr<FlightMessageWriter> writer) {
187 RETURN_NOT_OK(writer->Begin(ExampleIntSchema()));
188 RecordBatchVector batches;
189 RETURN_NOT_OK(ExampleIntBatches(&batches));
190 for (const auto& batch : batches) {
191 RETURN_NOT_OK(writer->WriteRecordBatch(*batch));
192 }
193 return Status::OK();
194}
195
196// A simple example - act like DoPut
197Status TestFlightServer::RunExchangePut(std::unique_ptr<FlightMessageReader> reader,

Callers

nothing calls this directly

Calls 5

ExampleIntSchemaFunction · 0.85
ExampleIntBatchesFunction · 0.85
OKFunction · 0.50
BeginMethod · 0.45
WriteRecordBatchMethod · 0.45

Tested by

no test coverage detected