Class LongDecimalWithOverflowStateFactory.SingleLongDecimalWithOverflowState
- java.lang.Object
-
- io.prestosql.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 long
overflow
static int
SIZE
protected io.airlift.slice.Slice
unscaledDecimal
-
Constructor Summary
Constructors Constructor Description SingleLongDecimalWithOverflowState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getEstimatedSize()
io.airlift.slice.Slice
getLongDecimal()
long
getOverflow()
void
setLongDecimal(io.airlift.slice.Slice unscaledDecimal)
void
setOverflow(long overflow)
-
-
-
Method Detail
-
getLongDecimal
public io.airlift.slice.Slice getLongDecimal()
- Specified by:
getLongDecimal
in interfaceLongDecimalWithOverflowState
-
setLongDecimal
public void setLongDecimal(io.airlift.slice.Slice unscaledDecimal)
- Specified by:
setLongDecimal
in interfaceLongDecimalWithOverflowState
-
getOverflow
public long getOverflow()
- Specified by:
getOverflow
in interfaceLongDecimalWithOverflowState
-
setOverflow
public void setOverflow(long overflow)
- Specified by:
setOverflow
in interfaceLongDecimalWithOverflowState
-
getEstimatedSize
public long getEstimatedSize()
- Specified by:
getEstimatedSize
in interfaceAccumulatorState
-
-