Adds a batch of data to this sink.
Adds a batch of data to this sink. The data for a given batchId
is deterministic and if
this method is called more than once with the same batchId (which will happen in the case of
failures), then data
should only be added once.
An interface for systems that can collect the results of a streaming query. In order to preserve exactly once semantics a sink must be idempotent in the face of multiple attempts to add the same batch.