Class SingleTypedHistogram
java.lang.Object
io.trino.operator.aggregation.histogram.SingleTypedHistogram
- All Implemented Interfaces:
TypedHistogram
-
Constructor Summary
ConstructorsConstructorDescriptionSingleTypedHistogram(Block block, Type type, BlockTypeOperators.BlockPositionEqual equalOperator, BlockTypeOperators.BlockPositionHashCode hashCodeOperator, int expectedSize) SingleTypedHistogram(Type type, BlockTypeOperators.BlockPositionEqual equalOperator, BlockTypeOperators.BlockPositionHashCode hashCodeOperator, int expectedSize) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddAll(TypedHistogram other) longintgetType()booleanisEmpty()voidreadAllValues(HistogramValueReader reader) voidserialize(BlockBuilder out) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.trino.operator.aggregation.histogram.TypedHistogram
ensureCapacity, setGroupId
-
Constructor Details
-
SingleTypedHistogram
public SingleTypedHistogram(Type type, BlockTypeOperators.BlockPositionEqual equalOperator, BlockTypeOperators.BlockPositionHashCode hashCodeOperator, int expectedSize) -
SingleTypedHistogram
public SingleTypedHistogram(Block block, Type type, BlockTypeOperators.BlockPositionEqual equalOperator, BlockTypeOperators.BlockPositionHashCode hashCodeOperator, int expectedSize)
-
-
Method Details
-
getEstimatedSize
public long getEstimatedSize()- Specified by:
getEstimatedSizein interfaceTypedHistogram
-
serialize
- Specified by:
serializein interfaceTypedHistogram
-
addAll
- Specified by:
addAllin interfaceTypedHistogram
-
readAllValues
- Specified by:
readAllValuesin interfaceTypedHistogram
-
add
- Specified by:
addin interfaceTypedHistogram
-
getType
- Specified by:
getTypein interfaceTypedHistogram
-
getExpectedSize
public int getExpectedSize()- Specified by:
getExpectedSizein interfaceTypedHistogram
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceTypedHistogram
-