Class AggregationSpecification
- java.lang.Object
-
- org.apache.cassandra.db.aggregation.AggregationSpecification
-
public abstract class AggregationSpecification extends java.lang.ObjectDefines how rows should be grouped for creating aggregates.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAggregationSpecification.FactoryFactory forAggregationSpecification.static classAggregationSpecification.KindTheAggregationSpecificationkinds.static classAggregationSpecification.Serializer
-
Field Summary
Fields Modifier and Type Field Description static AggregationSpecificationAGGREGATE_EVERYTHINGAggregationSpecificationthat group all the row together.static AggregationSpecification.FactoryAGGREGATE_EVERYTHING_FACTORYFactory forAggregationSpecificationthat group all the row together.static AggregationSpecification.Serializerserializer
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static AggregationSpecification.FactoryaggregatePkPrefixFactory(ClusteringComparator comparator, int clusteringPrefixSize)Creates a newFactoryinstance to createAggregationSpecificationthat will build aggregates based on primary key columns.static AggregationSpecification.FactoryaggregatePkPrefixFactoryWithSelector(ClusteringComparator comparator, int clusteringPrefixSize, Selector.Factory factory)AggregationSpecification.Kindkind()Returns theAggregationSpecificationkind.GroupMakernewGroupMaker()Creates a newGroupMakerinstance.abstract GroupMakernewGroupMaker(GroupingState state)Creates a newGroupMakerinstance.
-
-
-
Field Detail
-
serializer
public static final AggregationSpecification.Serializer serializer
-
AGGREGATE_EVERYTHING
public static final AggregationSpecification AGGREGATE_EVERYTHING
AggregationSpecificationthat group all the row together.
-
AGGREGATE_EVERYTHING_FACTORY
public static final AggregationSpecification.Factory AGGREGATE_EVERYTHING_FACTORY
Factory forAggregationSpecificationthat group all the row together.
-
-
Method Detail
-
kind
public AggregationSpecification.Kind kind()
Returns theAggregationSpecificationkind.- Returns:
- the
AggregationSpecificationkind
-
newGroupMaker
public final GroupMaker newGroupMaker()
Creates a newGroupMakerinstance.- Returns:
- a new
GroupMakerinstance
-
newGroupMaker
public abstract GroupMaker newGroupMaker(GroupingState state)
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)
-
-