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
- Enclosing class:
LongDecimalWithOverflowStateFactory
public static class LongDecimalWithOverflowStateFactory.GroupedLongDecimalWithOverflowState
extends AbstractGroupedAccumulatorState
implements LongDecimalWithOverflowState
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOverflow(long overflow) voidensureCapacity(int size) long[]intlonglongbooleanvoidvoidsetOverflow(long overflow) Methods inherited from class io.trino.operator.aggregation.state.AbstractGroupedAccumulatorState
getGroupId, setGroupIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.trino.spi.function.AccumulatorState
copy
-
Constructor Details
-
GroupedLongDecimalWithOverflowState
public GroupedLongDecimalWithOverflowState()
-
-
Method Details
-
ensureCapacity
public void ensureCapacity(int size) - Specified by:
ensureCapacityin interfaceGroupedAccumulatorState
-
isNotNull
public boolean isNotNull()- Specified by:
isNotNullin interfaceLongDecimalWithOverflowState
-
setNotNull
public void setNotNull()- Specified by:
setNotNullin interfaceLongDecimalWithOverflowState
-
getDecimalArray
public long[] getDecimalArray()- Specified by:
getDecimalArrayin interfaceLongDecimalWithOverflowState
-
getDecimalArrayOffset
public int getDecimalArrayOffset()- Specified by:
getDecimalArrayOffsetin 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
-