Package org.apache.druid.server.metrics
Class SegmentRowCountDistribution
java.lang.Object
org.apache.druid.server.metrics.SegmentRowCountDistribution
Class that creates a count of segments that have row counts in certain buckets
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRowCountToDistribution(long rowCount) Increments the count for a particular bucket held in this classvoidIncrements 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 classvoidDecrements the count for the number of tombstones in he distribution.
-
Constructor Details
-
SegmentRowCountDistribution
public SegmentRowCountDistribution()
-
-
Method Details
-
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
Gives the consumer the range dimension and the associated count. Will not give zero range unless there is a count there.- Parameters:
consumer-
-