Interface HistogramState
-
- All Superinterfaces:
AccumulatorState
- All Known Implementing Classes:
GroupedHistogramState
,LegacyHistogramGroupState
,SingleHistogramState
public interface HistogramState extends AccumulatorState
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addMemoryUsage(long memory)
void
deserialize(Block block, int expectedSize)
TypedHistogram
get()
will create an empty histogram if none exists-
Methods inherited from interface io.prestosql.spi.function.AccumulatorState
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)
-
-