| 239 | arrow::Result<FlightPayload> PyFlightDataStream::Next() { return stream_->Next(); } |
| 240 | |
| 241 | PyGeneratorFlightDataStream::PyGeneratorFlightDataStream( |
| 242 | PyObject* generator, std::shared_ptr<arrow::Schema> schema, |
| 243 | PyGeneratorFlightDataStreamCallback callback, const ipc::IpcWriteOptions& options) |
| 244 | : schema_(schema), mapper_(*schema_), options_(options), callback_(callback) { |
| 245 | Py_INCREF(generator); |
| 246 | generator_.reset(generator); |
| 247 | } |
| 248 | |
| 249 | std::shared_ptr<Schema> PyGeneratorFlightDataStream::schema() { return schema_; } |
| 250 | |