Perform compaction of the batch with given key.
Perform compaction of the batch with given key.
TODO: PERF: for delta compaction, merge and replace required columns only using ColumnDeltaEncoder.merge rather than creating an entire new batch for best performance. Also update the stats row for those columns.
Compact column batches, if required, and insert new compacted column batches, or if they are too small then push into row delta buffer.