DAGDA SEARCH | Back to results | Support

pyarrow.flight.GeneratorStream — Apache Arrow v26.0.1

Source: https://arrow.apache.org/docs/python/generated/pyarrow.flight.GeneratorStream.html

pyarrow.flight.GeneratorStream#

class pyarrow.flight.GeneratorStream(schema, generator, options=None)#

Bases: FlightDataStream

A Flight data stream backed by a Python generator.

__init__()#

Create a GeneratorStream from a Python generator.

Parameters:
schemaSchema

The schema for the data to be returned.

generatoriterator or iterable

The generator should yield other FlightDataStream objects, Tables, RecordBatches, or RecordBatchReaders.

optionspyarrow.ipc.IpcWriteOptions, optional

Methods

__init__

Create a GeneratorStream from a Python generator.

On this page Edit on GitHub