Class AggregateDataDistinctWithCounts


  • final class AggregateDataDistinctWithCounts
    extends AggregateData
    Data stored while calculating an aggregate that needs distinct values with their counts.
    • Field Detail

      • ignoreNulls

        private final boolean ignoreNulls
      • maxDistinctCount

        private final int maxDistinctCount
    • Constructor Detail

      • AggregateDataDistinctWithCounts

        AggregateDataDistinctWithCounts​(boolean ignoreNulls,
                                        int maxDistinctCount)
        Creates new instance of data for aggregate that needs distinct values with their counts.
        Parameters:
        ignoreNulls - whether NULL values should be ignored
        maxDistinctCount - maximum count of distinct values to collect
    • Method Detail

      • getValues

        java.util.TreeMap<Value,​LongDataCounter> getValues()
        Returns map with values and their counts.
        Returns:
        map with values and their counts