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 longoverflowstatic intSIZEprotected io.airlift.slice.SliceunscaledDecimal
-
Constructor Summary
Constructors Constructor Description SingleLongDecimalWithOverflowState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddOverflow(long overflow)longgetEstimatedSize()io.airlift.slice.SlicegetLongDecimal()longgetOverflow()voidsetLongDecimal(io.airlift.slice.Slice unscaledDecimal)voidsetOverflow(long overflow)
-
-
-
Method Detail
-
getLongDecimal
public io.airlift.slice.Slice getLongDecimal()
- Specified by:
getLongDecimalin interfaceLongDecimalWithOverflowState
-
setLongDecimal
public void setLongDecimal(io.airlift.slice.Slice unscaledDecimal)
- 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
-
-