Class SegmentRowCountDistribution


  • public class SegmentRowCountDistribution
    extends Object
    Class that creates a count of segments that have row counts in certain buckets
    • Constructor Detail

      • SegmentRowCountDistribution

        public SegmentRowCountDistribution()
    • Method Detail

      • addRowCountToDistribution

        public void addRowCountToDistribution​(long rowCount)
        Increments the count for a particular bucket held in this class
        Parameters:
        rowCount - the number of rows to figure out which bucket to increment
      • removeRowCountFromDistribution

        public void removeRowCountFromDistribution​(long rowCount)
        Decrements the count for a particular bucket held in this class
        Parameters:
        rowCount - the count which determines which bucket to decrement
      • addTombstoneToDistribution

        public void addTombstoneToDistribution()
        Increments the count for number of tombstones in the distribution
      • removeTombstoneFromDistribution

        public void removeTombstoneFromDistribution()
        Decrements the count for the number of tombstones in he distribution.
      • forEachDimension

        public void forEachDimension​(ObjIntConsumer<String> consumer)
        Gives the consumer the range dimension and the associated count. Will not give zero range unless there is a count there.
        Parameters:
        consumer -