public abstract class GroupMaker
extends java.lang.Object
GroupMaker
can be used to determine if some sorted rows belongs to the same group or not.Modifier and Type | Field and Description |
---|---|
static GroupMaker |
GROUP_EVERYTHING
GroupMaker that groups all the rows together. |
Constructor and Description |
---|
GroupMaker() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
isNewGroup(DecoratedKey partitionKey,
Clustering<?> clustering)
Checks if a given row belongs to the same group that the previous row or not.
|
static GroupMaker |
newInstance(ClusteringComparator comparator,
int clusteringPrefixSize) |
static GroupMaker |
newInstance(ClusteringComparator comparator,
int clusteringPrefixSize,
GroupingState state) |
boolean |
returnAtLeastOneRow()
Specify if at least one row must be returned.
|
public static final GroupMaker GROUP_EVERYTHING
GroupMaker
that groups all the rows together.public static GroupMaker newInstance(ClusteringComparator comparator, int clusteringPrefixSize, GroupingState state)
public static GroupMaker newInstance(ClusteringComparator comparator, int clusteringPrefixSize)
public abstract boolean isNewGroup(DecoratedKey partitionKey, Clustering<?> clustering)
partitionKey
- the partition key.clustering
- the row clustering keytrue
if the row belongs to the same group that the previous one, false
otherwise.public boolean returnAtLeastOneRow()
true
if at least one row must be returned, false
otherwise.Copyright © 2009-2021 The Apache Software Foundation