Class FlightRecordBatchStreamWriter
public abstract class FlightRecordBatchStreamWriter : IAsyncStreamWriter<RecordBatch>, IDisposable
- Inheritance
-
FlightRecordBatchStreamWriter
- Implements
- Derived
- Inherited Members
Properties
WriteOptions
Write options that will be used for the next write. If null, default options will be used. Once set, this property maintains its value across subsequent writes.
public WriteOptions WriteOptions { get; set; }
Property Value
Methods
Dispose()
public void Dispose()
Dispose(bool)
protected virtual void Dispose(bool disposing)
Parameters
disposing
bool
SetupStream(Schema)
Configure the data stream to write to.
public Task SetupStream(Schema schema)
Parameters
schema
SchemaThe schema of data to be written to this stream
Returns
Remarks
The stream will be set up automatically when writing a RecordBatch if required, but calling this method before writing any data allows handling empty streams.
WriteAsync(RecordBatch)
Writes a message asynchronously. Only one write can be pending at a time.
public Task WriteAsync(RecordBatch message)
Parameters
message
RecordBatchThe message to be written. Cannot be null.
Returns
WriteAsync(RecordBatch, ByteString)
public Task WriteAsync(RecordBatch message, ByteString applicationMetadata)
Parameters
message
RecordBatchapplicationMetadata
ByteString