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.
Returns all rows that are stored in this Sink.
A sink that stores the results in memory. This Sink is primarily intended for use in unit tests and does not provide durability.