Package org.apache.druid.server.metrics
Class SegmentRowCountDistribution
- java.lang.Object
-
- org.apache.druid.server.metrics.SegmentRowCountDistribution
-
public class SegmentRowCountDistribution extends Object
Class that creates a count of segments that have row counts in certain buckets
-
-
Constructor Summary
Constructors Constructor Description SegmentRowCountDistribution()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRowCountToDistribution(long rowCount)Increments the count for a particular bucket held in this classvoidaddTombstoneToDistribution()Increments the count for number of tombstones in the distributionvoidforEachDimension(ObjIntConsumer<String> consumer)Gives the consumer the range dimension and the associated count.voidremoveRowCountFromDistribution(long rowCount)Decrements the count for a particular bucket held in this classvoidremoveTombstoneFromDistribution()Decrements the count for the number of tombstones in he distribution.
-
-
-
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-
-
-