A simple example - act like DoGet.
| 183 | |
| 184 | // A simple example - act like DoGet. |
| 185 | Status 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 |
| 197 | Status TestFlightServer::RunExchangePut(std::unique_ptr<FlightMessageReader> reader, |
nothing calls this directly
no test coverage detected