public class GroupedHistogramState extends AbstractGroupedAccumulatorState implements HistogramState
GroupedTypedHistogram| Constructor and Description |
|---|
GroupedHistogramState(Type keyType,
int expectedEntriesCount) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMemoryUsage(long memory) |
void |
deserialize(Block block,
Type type,
int expectedSize) |
void |
ensureCapacity(long size) |
TypedHistogram |
get()
will create an empty histogram if none exists
|
long |
getEstimatedSize() |
getGroupId, setGroupIdpublic GroupedHistogramState(Type keyType, int expectedEntriesCount)
public void ensureCapacity(long size)
ensureCapacity in interface GroupedAccumulatorStatepublic 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.