Class AggregationSpecification

java.lang.Object
org.apache.cassandra.db.aggregation.AggregationSpecification

public abstract class AggregationSpecification extends Object
Defines how rows should be grouped for creating aggregates.
  • Field Details

  • Method Details

    • kind

      Returns the AggregationSpecification kind.
      Returns:
      the AggregationSpecification kind
    • newGroupMaker

      public final GroupMaker newGroupMaker()
      Creates a new GroupMaker instance.
      Returns:
      a new GroupMaker instance
    • newGroupMaker

      public abstract GroupMaker newGroupMaker(GroupingState state)
      Creates a new GroupMaker instance.
      Parameters:
      state - GroupMaker state
      Returns:
      a new GroupMaker instance
    • aggregatePkPrefixFactory

      public static AggregationSpecification.Factory aggregatePkPrefixFactory(ClusteringComparator comparator, int clusteringPrefixSize)
      Creates a new Factory instance to create AggregationSpecification that will build aggregates based on primary key columns.
      Parameters:
      comparator - the comparator used to compare the clustering prefixes
      clusteringPrefixSize - the number of clustering columns used to create the aggregates
      Returns:
      a new Factory instance to create AggregationSpecification that will build aggregates based on primary key columns.
    • aggregatePkPrefixFactoryWithSelector

      public static AggregationSpecification.Factory aggregatePkPrefixFactoryWithSelector(ClusteringComparator comparator, int clusteringPrefixSize, Selector.Factory factory, List<ColumnMetadata> columns)