Method
OmniStreamSinkfeed_table_batch
Declaration
void
omni_stream_sink_feed_table_batch (
OmniStreamSink* self,
OmniArrowRecordBatch* batch,
OmniTime time_start,
OmniTime time_end
)
Description
Add a batch to the table stream, blocking the calling thread until completion.
This is the synchronous version of omni_stream_sink_feed_table_batch_async(). It can
be significantly easier to use in some language bindings, but you should
avoid it whenever possible because of the following limitations:
-
Calling it from a GLib event loop is prohibited. In general, you should only call it from a worker thread unassociated with a GLib main context.
-
Because of the blocking operation, the calling thread can not perform other tasks while the operation is in progress, potentially resulting in less efficient use of hardware resources.
See omni_stream_sink_feed_table_batch_async() for usage of this method.
Parameters
batch-
Type:
OmniArrowRecordBatchNo description available.
The argument can be NULL.The data is owned by the caller of the method. time_start-
Type:
OmniTimeNo description available.
time_end-
Type:
OmniTimeNo description available.