Class LongDecimalWithOverflowStateFactory.GroupedLongDecimalWithOverflowState
- java.lang.Object
-
- io.prestosql.operator.aggregation.state.AbstractGroupedAccumulatorState
-
- io.prestosql.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 long
numberOfElements
protected LongBigArray
overflows
protected ObjectBigArray<io.airlift.slice.Slice>
unscaledDecimals
-
Constructor Summary
Constructors Constructor Description GroupedLongDecimalWithOverflowState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
ensureCapacity(long size)
long
getEstimatedSize()
io.airlift.slice.Slice
getLongDecimal()
long
getOverflow()
void
setLongDecimal(io.airlift.slice.Slice value)
void
setOverflow(long overflow)
-
Methods inherited from class io.prestosql.operator.aggregation.state.AbstractGroupedAccumulatorState
getGroupId, setGroupId
-
-
-
-
Field Detail
-
unscaledDecimals
protected final ObjectBigArray<io.airlift.slice.Slice> unscaledDecimals
-
overflows
protected final LongBigArray overflows
-
numberOfElements
protected long numberOfElements
-
-
Method Detail
-
ensureCapacity
public void ensureCapacity(long size)
- Specified by:
ensureCapacity
in interfaceGroupedAccumulatorState
-
getLongDecimal
public io.airlift.slice.Slice getLongDecimal()
- Specified by:
getLongDecimal
in interfaceLongDecimalWithOverflowState
-
setLongDecimal
public void setLongDecimal(io.airlift.slice.Slice value)
- 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
-
-