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

Method PyGeneratorFlightDataStream

python/pyarrow/src/arrow/python/flight.cc:241–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239arrow::Result<FlightPayload> PyFlightDataStream::Next() { return stream_->Next(); }
240
241PyGeneratorFlightDataStream::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
249std::shared_ptr<Schema> PyGeneratorFlightDataStream::schema() { return schema_; }
250

Callers

nothing calls this directly

Calls 1

resetMethod · 0.45

Tested by

no test coverage detected