Package org.apache.hadoop.hbase.io.hfile
Class HFilePrettyPrinter.KeyValueStats
java.lang.Object
org.apache.hadoop.hbase.io.hfile.HFilePrettyPrinter.KeyValueStats
- Enclosing class:
- HFilePrettyPrinter
Holds a Histogram and supporting min/max and range buckets for analyzing distribution of key
bytes, value bytes, row bytes, and row columns. Supports adding values, getting the histogram,
and getting counts per range.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionKeyValueStats
(com.codahale.metrics.MetricRegistry metricRegistry, String statName) -
Method Summary
Modifier and TypeMethodDescription(package private) long
getCountAtOrBelow
(long range) (package private) com.codahale.metrics.Histogram
(package private) long
getMax()
(package private) long
getMin()
(package private) String
getName()
(package private) long[]
(package private) boolean
(package private) void
update
(long value, boolean collectRanges)
-
Field Details
-
histogram
-
name
-
max
-
min
-
collectRanges
-
rangeCounts
-
-
Constructor Details
-
KeyValueStats
KeyValueStats(com.codahale.metrics.MetricRegistry metricRegistry, String statName)
-
-
Method Details
-
update
-
getHistogram
com.codahale.metrics.Histogram getHistogram() -
getName
-
getMax
long getMax() -
getMin
long getMin() -
getRanges
long[] getRanges() -
getCountAtOrBelow
-
hasRangeCounts
boolean hasRangeCounts()
-