Interface HistogramState
- All Superinterfaces:
AccumulatorState
- All Known Implementing Classes:
GroupedHistogramState,SingleHistogramState
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddMemoryUsage(long memory) voiddeserialize(Block block, int expectedSize) get()will create an empty histogram if none existsMethods inherited from interface io.trino.spi.function.AccumulatorState
copy, getEstimatedSize
-
Method Details
-
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
-