Class GroupedRedirectionIndex

java.lang.Object
com.illumon.iris.db.v2.utils.GroupedRedirectionIndex
All Implemented Interfaces:
RedirectionIndex

public class GroupedRedirectionIndex
extends Object
implements RedirectionIndex
The GroupedRedirectionIndex is intended for situations where you have several Indices that represent contiguous rows of your output table and a flat output index. When sorting a table by it's grouping column, instead of using a large contiguous RedirectionIndex, we simply store the indices 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 Index. This RedirectionIndex does not support mutation.