| 213 | } |
| 214 | |
| 215 | arrow::Result<std::unique_ptr<arrow::flight::Result>> PyFlightResultStream::Next() { |
| 216 | return SafeCallIntoPython( |
| 217 | [=]() -> arrow::Result<std::unique_ptr<arrow::flight::Result>> { |
| 218 | std::unique_ptr<arrow::flight::Result> result; |
| 219 | const Status status = callback_(generator_.obj(), &result); |
| 220 | RETURN_NOT_OK(CheckPyError()); |
| 221 | RETURN_NOT_OK(status); |
| 222 | return result; |
| 223 | }); |
| 224 | } |
| 225 | |
| 226 | PyFlightDataStream::PyFlightDataStream( |
| 227 | PyObject* data_source, std::unique_ptr<arrow::flight::FlightDataStream> stream) |
nothing calls this directly
no test coverage detected