Class AggregationSpecification
java.lang.Object
org.apache.cassandra.db.aggregation.AggregationSpecification
Defines how rows should be grouped for creating aggregates.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceFactory forAggregationSpecification.static enumTheAggregationSpecificationkinds.static class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AggregationSpecificationAggregationSpecificationthat group all the row together.static final AggregationSpecification.FactoryFactory forAggregationSpecificationthat group all the row together.static final AggregationSpecification.Serializer -
Method Summary
Modifier and TypeMethodDescriptionaggregatePkPrefixFactory(ClusteringComparator comparator, int clusteringPrefixSize) Creates a newFactoryinstance to createAggregationSpecificationthat will build aggregates based on primary key columns.aggregatePkPrefixFactoryWithSelector(ClusteringComparator comparator, int clusteringPrefixSize, Selector.Factory factory, List<ColumnMetadata> columns) kind()Returns theAggregationSpecificationkind.final GroupMakerCreates a newGroupMakerinstance.abstract GroupMakernewGroupMaker(GroupingState state) Creates a newGroupMakerinstance.
-
Field Details
-
serializer
-
AGGREGATE_EVERYTHING
AggregationSpecificationthat group all the row together. -
AGGREGATE_EVERYTHING_FACTORY
Factory forAggregationSpecificationthat group all the row together.
-
-
Method Details
-
kind
Returns theAggregationSpecificationkind.- Returns:
- the
AggregationSpecificationkind
-
newGroupMaker
Creates a newGroupMakerinstance.- Returns:
- a new
GroupMakerinstance
-
newGroupMaker
Creates a newGroupMakerinstance.- Parameters:
state-GroupMakerstate- Returns:
- a new
GroupMakerinstance
-
aggregatePkPrefixFactory
public static AggregationSpecification.Factory aggregatePkPrefixFactory(ClusteringComparator comparator, int clusteringPrefixSize) Creates a newFactoryinstance to createAggregationSpecificationthat will build aggregates based on primary key columns.- Parameters:
comparator- the comparator used to compare the clustering prefixesclusteringPrefixSize- the number of clustering columns used to create the aggregates- Returns:
- a new
Factoryinstance to createAggregationSpecificationthat will build aggregates based on primary key columns.
-
aggregatePkPrefixFactoryWithSelector
public static AggregationSpecification.Factory aggregatePkPrefixFactoryWithSelector(ClusteringComparator comparator, int clusteringPrefixSize, Selector.Factory factory, List<ColumnMetadata> columns)
-