public class SingleHistogramState extends Object implements HistogramState
| Constructor and Description |
|---|
SingleHistogramState(Type keyType,
int expectedEntriesCount) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMemoryUsage(long memory) |
void |
deserialize(Block block,
Type type,
int expectedSize) |
TypedHistogram |
get()
will create an empty histogram if none exists
|
long |
getEstimatedSize() |
public SingleHistogramState(Type keyType, int expectedEntriesCount)
public TypedHistogram get()
HistogramStateget in interface HistogramStatepublic void deserialize(Block block, Type type, int expectedSize)
deserialize in interface HistogramStatepublic void addMemoryUsage(long memory)
addMemoryUsage in interface HistogramStatepublic long getEstimatedSize()
getEstimatedSize in interface AccumulatorStateCopyright © 2012–2019. All rights reserved.