Class UpdateCoalescer

java.lang.Object
io.deephaven.engine.table.impl.util.UpdateCoalescer
All Implemented Interfaces:
SafeCloseable, AutoCloseable

public class UpdateCoalescer extends Object implements SafeCloseable
Helper utility for coalescing multiple updates.

Owns every RowSet it allocates, so it must be closed. Calling coalesce() hands added, removed and modified to the update it returns, which the caller must then release; whatever is left belongs to this object and close() frees it. A coalescer that is closed without being coalesced therefore releases everything, which is what makes it safe to abandon one.