public class SingleTypedHistogram extends Object implements TypedHistogram
| Constructor and Description |
|---|
SingleTypedHistogram(Block block,
Type type,
int expectedSize) |
SingleTypedHistogram(Type type,
int expectedSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int position,
Block block,
long count) |
void |
addAll(TypedHistogram other) |
long |
getEstimatedSize() |
int |
getExpectedSize() |
Type |
getType() |
boolean |
isEmpty() |
void |
readAllValues(HistogramValueReader reader) |
void |
serialize(BlockBuilder out) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitensureCapacity, setGroupIdpublic SingleTypedHistogram(Type type, int expectedSize)
public long getEstimatedSize()
getEstimatedSize in interface TypedHistogrampublic void serialize(BlockBuilder out)
serialize in interface TypedHistogrampublic void addAll(TypedHistogram other)
addAll in interface TypedHistogrampublic void readAllValues(HistogramValueReader reader)
readAllValues in interface TypedHistogrampublic void add(int position,
Block block,
long count)
add in interface TypedHistogrampublic Type getType()
getType in interface TypedHistogrampublic int getExpectedSize()
getExpectedSize in interface TypedHistogrampublic boolean isEmpty()
isEmpty in interface TypedHistogramCopyright © 2012–2019. All rights reserved.