Interface HistogramState
-
- All Superinterfaces:
AccumulatorState
- All Known Implementing Classes:
GroupedHistogramState,SingleHistogramState
public interface HistogramState extends AccumulatorState
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddMemoryUsage(long memory)voiddeserialize(Block block, int expectedSize)TypedHistogramget()will create an empty histogram if none exists-
Methods inherited from interface io.trino.spi.function.AccumulatorState
copy, getEstimatedSize
-
-
-
-
Method Detail
-
get
TypedHistogram get()
will create an empty histogram if none exists- Returns:
- histogram based on the type of state (single, grouped). Note that empty histograms will serialize to null as required
-
addMemoryUsage
void addMemoryUsage(long memory)
-
deserialize
void deserialize(Block block, int expectedSize)
-
-