Class LongDecimalWithOverflowStateFactory.SingleLongDecimalWithOverflowState
- java.lang.Object
-
- io.trino.operator.aggregation.state.LongDecimalWithOverflowStateFactory.SingleLongDecimalWithOverflowState
-
- All Implemented Interfaces:
LongDecimalWithOverflowState,AccumulatorState
- Direct Known Subclasses:
LongDecimalWithOverflowAndLongStateFactory.SingleLongDecimalWithOverflowAndLongState
- Enclosing class:
- LongDecimalWithOverflowStateFactory
public static class LongDecimalWithOverflowStateFactory.SingleLongDecimalWithOverflowState extends Object implements LongDecimalWithOverflowState
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanisNotNullprotected longoverflowprotected static intSIZEprotected long[]unscaledDecimal
-
Constructor Summary
Constructors Constructor Description SingleLongDecimalWithOverflowState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddOverflow(long overflow)AccumulatorStatecopy()long[]getDecimalArray()intgetDecimalArrayOffset()longgetEstimatedSize()longgetOverflow()booleanisNotNull()voidsetNotNull()voidsetOverflow(long overflow)
-
-
-
Method Detail
-
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
-
copy
public AccumulatorState copy()
- Specified by:
copyin interfaceAccumulatorState
-
-