Class LongDecimalWithOverflowAndLongStateFactory.SingleLongDecimalWithOverflowAndLongState
- java.lang.Object
-
- io.trino.operator.aggregation.state.LongDecimalWithOverflowStateFactory.SingleLongDecimalWithOverflowState
-
- io.trino.operator.aggregation.state.LongDecimalWithOverflowAndLongStateFactory.SingleLongDecimalWithOverflowAndLongState
-
- All Implemented Interfaces:
LongDecimalWithOverflowAndLongState,LongDecimalWithOverflowState,AccumulatorState
- Enclosing class:
- LongDecimalWithOverflowAndLongStateFactory
public static class LongDecimalWithOverflowAndLongStateFactory.SingleLongDecimalWithOverflowAndLongState extends LongDecimalWithOverflowStateFactory.SingleLongDecimalWithOverflowState implements LongDecimalWithOverflowAndLongState
-
-
Field Summary
Fields Modifier and Type Field Description protected longlongValue-
Fields inherited from class io.trino.operator.aggregation.state.LongDecimalWithOverflowStateFactory.SingleLongDecimalWithOverflowState
isNotNull, overflow, SIZE, unscaledDecimal
-
-
Constructor Summary
Constructors Constructor Description SingleLongDecimalWithOverflowAndLongState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddLong(long value)AccumulatorStatecopy()longgetEstimatedSize()longgetLong()voidsetLong(long longValue)-
Methods inherited from class io.trino.operator.aggregation.state.LongDecimalWithOverflowStateFactory.SingleLongDecimalWithOverflowState
addOverflow, getDecimalArray, getDecimalArrayOffset, getOverflow, isNotNull, setNotNull, setOverflow
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.trino.operator.aggregation.state.LongDecimalWithOverflowState
addOverflow, getDecimalArray, getDecimalArrayOffset, getOverflow, isNotNull, setNotNull, setOverflow
-
-
-
-
Method Detail
-
getLong
public long getLong()
- Specified by:
getLongin interfaceLongDecimalWithOverflowAndLongState
-
setLong
public void setLong(long longValue)
- Specified by:
setLongin interfaceLongDecimalWithOverflowAndLongState
-
addLong
public void addLong(long value)
- Specified by:
addLongin interfaceLongDecimalWithOverflowAndLongState
-
getEstimatedSize
public long getEstimatedSize()
- Specified by:
getEstimatedSizein interfaceAccumulatorState- Overrides:
getEstimatedSizein classLongDecimalWithOverflowStateFactory.SingleLongDecimalWithOverflowState
-
copy
public AccumulatorState copy()
- Specified by:
copyin interfaceAccumulatorState- Overrides:
copyin classLongDecimalWithOverflowStateFactory.SingleLongDecimalWithOverflowState
-
-