Class RandomGroupingBuilder<DATA_TYPE>

java.lang.Object
io.deephaven.engine.table.impl.locations.impl.RandomGroupingBuilder<DATA_TYPE>

public class RandomGroupingBuilder<DATA_TYPE> extends Object
Builder for constructing groupings from one or more <value, key range> pairs, with no requirement that key ranges be sequential.
  • Constructor Details

    • RandomGroupingBuilder

      public RandomGroupingBuilder()
  • Method Details

    • addToGrouping

      public void addToGrouping(@Nullable DATA_TYPE value, long firstKey, long lastKey)
      Add a mapping from value [firstRowKey, lastRowKey] to the groupings under construction.
      Parameters:
      value - The value for the grouping
      firstKey - The first key in the range
      lastKey - The last key in the range
    • getGrouping

      public Map<DATA_TYPE,RowSet> getGrouping()
      Get the groupings under construction in a form usable by AbstractColumnSource implementations.
      Returns:
      A mapping from grouping value to its matching RowSet