Class LongDecimalWithOverflowStateFactory.GroupedLongDecimalWithOverflowState
- java.lang.Object
-
- io.trino.operator.aggregation.state.AbstractGroupedAccumulatorState
-
- io.trino.operator.aggregation.state.LongDecimalWithOverflowStateFactory.GroupedLongDecimalWithOverflowState
-
- All Implemented Interfaces:
LongDecimalWithOverflowState,AccumulatorState,GroupedAccumulatorState
- Direct Known Subclasses:
LongDecimalWithOverflowAndLongStateFactory.GroupedLongDecimalWithOverflowAndLongState
- Enclosing class:
- LongDecimalWithOverflowStateFactory
public static class LongDecimalWithOverflowStateFactory.GroupedLongDecimalWithOverflowState extends AbstractGroupedAccumulatorState implements LongDecimalWithOverflowState
-
-
Field Summary
Fields Modifier and Type Field Description protected longnumberOfElementsprotected LongBigArrayoverflowsprotected ObjectBigArray<io.airlift.slice.Slice>unscaledDecimals
-
Constructor Summary
Constructors Constructor Description GroupedLongDecimalWithOverflowState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddOverflow(long overflow)voidensureCapacity(long size)longgetEstimatedSize()io.airlift.slice.SlicegetLongDecimal()longgetOverflow()voidsetLongDecimal(io.airlift.slice.Slice value)voidsetOverflow(long overflow)-
Methods inherited from class io.trino.operator.aggregation.state.AbstractGroupedAccumulatorState
getGroupId, setGroupId
-
-
-
-
Field Detail
-
unscaledDecimals
protected final ObjectBigArray<io.airlift.slice.Slice> unscaledDecimals
-
overflows
protected final LongBigArray overflows
-
numberOfElements
protected long numberOfElements
-
-
Method Detail
-
ensureCapacity
public void ensureCapacity(long size)
- Specified by:
ensureCapacityin interfaceGroupedAccumulatorState
-
getLongDecimal
public io.airlift.slice.Slice getLongDecimal()
- Specified by:
getLongDecimalin interfaceLongDecimalWithOverflowState
-
setLongDecimal
public void setLongDecimal(io.airlift.slice.Slice value)
- Specified by:
setLongDecimalin interfaceLongDecimalWithOverflowState
-
getOverflow
public long getOverflow()
- Specified by:
getOverflowin interfaceLongDecimalWithOverflowState
-
setOverflow
public void setOverflow(long overflow)
- Specified by:
setOverflowin interfaceLongDecimalWithOverflowState
-
addOverflow
public void addOverflow(long overflow)
- Specified by:
addOverflowin interfaceLongDecimalWithOverflowState
-
getEstimatedSize
public long getEstimatedSize()
- Specified by:
getEstimatedSizein interfaceAccumulatorState
-
-