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, setGroupId
public GroupedHistogramState(Type keyType, int expectedEntriesCount)
public void ensureCapacity(long size)
ensureCapacity
in interface GroupedAccumulatorState
public TypedHistogram get()
HistogramState
get
in interface HistogramState
public void deserialize(Block block, Type type, int expectedSize)
deserialize
in interface HistogramState
public void addMemoryUsage(long memory)
addMemoryUsage
in interface HistogramState
public long getEstimatedSize()
getEstimatedSize
in interface AccumulatorState
Copyright © 2012–2019. All rights reserved.