Class FlightRecordBatchStreamReader
Stream of record batches
Use MoveNext() and Current to iterate over the batches. There are also gRPC helper functions such as ToListAsync() etc.
public abstract class FlightRecordBatchStreamReader : IAsyncStreamReader<RecordBatch>, IAsyncEnumerable<RecordBatch>, IDisposable
- Inheritance
-
FlightRecordBatchStreamReader
- Implements
- Derived
- Inherited Members
Properties
ApplicationMetadata
Get the application metadata from the latest received record batch
public IReadOnlyList<ByteString> ApplicationMetadata { get; }
Property Value
- IReadOnlyList<ByteString>
Current
Gets the current element in the iteration.
public RecordBatch Current { get; }
Property Value
Schema
public ValueTask<Schema> Schema { get; }
Property Value
Methods
Dispose()
public void Dispose()
GetAsyncEnumerator(CancellationToken)
Returns an enumerator that iterates asynchronously through the collection.
public IAsyncEnumerator<RecordBatch> GetAsyncEnumerator(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenA CancellationToken that may be used to cancel the asynchronous iteration.
Returns
- IAsyncEnumerator<RecordBatch>
An enumerator that can be used to iterate asynchronously through the collection.
MoveNext(CancellationToken)
Advances the reader to the next element in the sequence, returning the result asynchronously.
public Task<bool> MoveNext(CancellationToken cancellationToken)
Parameters
cancellationToken
CancellationTokenCancellation token that can be used to cancel the operation.