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 BooleanBigArrayisNotNullprotected LongBigArrayoverflowsprotected LongBigArrayunscaledDecimalsStores 128-bit decimals as pairs of longs
-
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)long[]getDecimalArray()intgetDecimalArrayOffset()longgetEstimatedSize()longgetOverflow()booleanisNotNull()voidsetNotNull()voidsetOverflow(long overflow)-
Methods inherited from class io.trino.operator.aggregation.state.AbstractGroupedAccumulatorState
getGroupId, setGroupId
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.trino.spi.function.AccumulatorState
copy
-
-
-
-
Field Detail
-
isNotNull
protected final BooleanBigArray isNotNull
-
unscaledDecimals
protected final LongBigArray unscaledDecimals
Stores 128-bit decimals as pairs of longs
-
overflows
@Nullable protected LongBigArray overflows
-
-
Method Detail
-
ensureCapacity
public void ensureCapacity(long 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
-
-