public class Histograms extends Object
| Constructor and Description |
|---|
Histograms(int columnCount,
int shift)
A Histograms object is a container for a map of namespaces to histograms (as defined by their associated
LatencyBuckets) & their histogram properties
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLatency(String namespace,
LatencyType type,
long elapsed)
Increment count of bucket corresponding to the namespace & elapsed time in nanoseconds.
|
LatencyBuckets[] |
getBuckets(String namespace)
Return the LatencyBuckets for a given namespace
|
ConcurrentHashMap<String,LatencyBuckets[]> |
getMap()
Return the histograms map
|
public Histograms(int columnCount,
int shift)
columnCount - number of histogram columns or "buckets"shift - power of 2 multiple between each range bucket in histogram starting at bucket 3.
The first 2 buckets are "<=1ms" and ">1ms".public void addLatency(String namespace, LatencyType type, long elapsed)
public LatencyBuckets[] getBuckets(String namespace)
public ConcurrentHashMap<String,LatencyBuckets[]> getMap()
Copyright © 2012–2025 Aerospike, Inc. All rights reserved.