Class GroupedWritableRowRedirection

java.lang.Object
io.deephaven.engine.table.impl.util.GroupedWritableRowRedirection
All Implemented Interfaces:
ChunkSink<RowKeys>, ChunkSource<RowKeys>, ChunkSource.WithPrev<RowKeys>, FillContextMaker, GetContextMaker, DefaultChunkSource<RowKeys>, DefaultChunkSource.WithPrev<RowKeys>, FillUnordered<RowKeys>, RowRedirection, WritableRowRedirection

public class GroupedWritableRowRedirection extends Object implements WritableRowRedirection
The GroupedWritableRowRedirection is intended for situations where you have several row sets that represent contiguous rows of your output table and a flat output RowSet.

When sorting a table by indexed columns, instead of using a large contiguous WritableRowRedirection, we simply store the row sets for each group and the accumulated cardinality. We then binary search in the accumulated cardinality for a given key; and fetch the corresponding offset from that group's row set.

This WritableRowRedirection does not support mutation.