Class TypedHistogram
java.lang.Object
io.trino.operator.aggregation.histogram.TypedHistogram
-
Constructor Summary
ConstructorsConstructorDescriptionTypedHistogram(Type type, MethodHandle readFlat, MethodHandle writeFlat, MethodHandle hashFlat, MethodHandle distinctFlatBlock, MethodHandle hashBlock, boolean grouped) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(int groupId, ValueBlock block, int position, long count) longvoidserialize(int groupId, MapBlockBuilder out) voidsetMaxGroupId(int maxGroupId) intsize()
-
Constructor Details
-
TypedHistogram
public TypedHistogram(Type type, MethodHandle readFlat, MethodHandle writeFlat, MethodHandle hashFlat, MethodHandle distinctFlatBlock, MethodHandle hashBlock, boolean grouped)
-
-
Method Details
-
getEstimatedSize
public long getEstimatedSize() -
setMaxGroupId
public void setMaxGroupId(int maxGroupId) -
size
public int size() -
serialize
-
add
-