Package com.illumon.iris.db.v2.dataindex
Class PartitionColumnGroupingProvider
java.lang.Object
com.illumon.iris.db.v2.dataindex.MemoizingGroupingProvider
com.illumon.iris.db.v2.dataindex.PartitionColumnGroupingProvider
- All Implemented Interfaces:
GroupingProvider
,KeyRangeGroupingProvider<String>
public class PartitionColumnGroupingProvider extends MemoizingGroupingProvider implements KeyRangeGroupingProvider<String>
A
KeyRangeGroupingProvider
for partitioning columns.-
Constructor Summary
Constructors Constructor Description PartitionColumnGroupingProvider()
-
Method Summary
Modifier and Type Method Description void
addSource(ColumnLocation columnLocation, long firstKey, long lastKey)
Add a column location for consideration when constructing groupings.GroupingBuilder
getGroupingBuilder()
Get aGroupingBuilder
suitable for creating groups with specific properties.boolean
hasGrouping()
Check if this provider is able to create a grouping or not.Methods inherited from class com.illumon.iris.db.v2.dataindex.MemoizingGroupingProvider
clearMemoizedGroupings, memoizeGrouping
-
Constructor Details
-
PartitionColumnGroupingProvider
public PartitionColumnGroupingProvider()
-
-
Method Details
-
getGroupingBuilder
Description copied from interface:GroupingProvider
Get aGroupingBuilder
suitable for creating groups with specific properties.- Specified by:
getGroupingBuilder
in interfaceGroupingProvider
- Returns:
- a
GroupingBuilder
-
addSource
Description copied from interface:KeyRangeGroupingProvider
Add a column location for consideration when constructing groupings.- Specified by:
addSource
in interfaceKeyRangeGroupingProvider<String>
- Parameters:
columnLocation
- The column location to addfirstKey
- The first key in the range for this column locationlastKey
- The last key in the range for this column location (inclusive)
-
hasGrouping
public boolean hasGrouping()Description copied from interface:GroupingProvider
Check if this provider is able to create a grouping or not.- Specified by:
hasGrouping
in interfaceGroupingProvider
- Returns:
- true if this provider can create a grouping.
-