Package com.illumon.iris.db.v2.locations
Class RandomGroupingBuilder<DATA_TYPE>
java.lang.Object
com.illumon.iris.db.v2.locations.RandomGroupingBuilder<DATA_TYPE>
Builder for constructing groupings from one or more
<value, key range>
pairs, with no requirement that
key ranges be sequential.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addGrouping
(DATA_TYPE value, long firstKey, long lastKey) Add a mapping from value [firstKey, lastKey] to the groupings under construction.Get the groupings under construction in a form usable by AbstractColumnSource implementations.
-
Constructor Details
-
RandomGroupingBuilder
public RandomGroupingBuilder()
-
-
Method Details
-
addGrouping
Add a mapping from value [firstKey, lastKey] to the groupings under construction.- Parameters:
value
- The value for the groupingfirstKey
- The first key in the rangelastKey
- The last key in the range
-
getGroupToIndex
Get the groupings under construction in a form usable by AbstractColumnSource implementations.- Returns:
- A mapping from grouping value to its matching Index
-