public class CountStat extends Object
Constructor and Description |
---|
CountStat(int numBuckets)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
Map<String,Long> |
getTimeCounts()
Get time counts.
|
void |
incBy(long count)
Increase the count by the given value.
|
public CountStat(int numBuckets)
numBuckets
- the number of buckets to divide the time periods into.public void incBy(long count)
count
- number to countpublic Map<String,Long> getTimeCounts()
public void close()
Copyright © 2023 The Apache Software Foundation. All rights reserved.