Class AggregationSpecification


  • public abstract class AggregationSpecification
    extends java.lang.Object
    Defines how rows should be grouped for creating aggregates.
    • Method Detail

      • 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.