public static class LongDecimalWithOverflowStateFactory.GroupedLongDecimalWithOverflowState extends AbstractGroupedAccumulatorState implements LongDecimalWithOverflowState
Modifier and Type | Field and Description |
---|---|
protected long |
numberOfElements |
protected LongBigArray |
overflows |
protected ObjectBigArray<io.airlift.slice.Slice> |
unscaledDecimals |
Constructor and Description |
---|
GroupedLongDecimalWithOverflowState() |
Modifier and Type | Method and Description |
---|---|
void |
addOverflow(long overflow) |
void |
ensureCapacity(long size) |
long |
getEstimatedSize() |
io.airlift.slice.Slice |
getLongDecimal() |
long |
getOverflow() |
void |
setLongDecimal(io.airlift.slice.Slice value) |
void |
setOverflow(long overflow) |
getGroupId, setGroupId
protected final ObjectBigArray<io.airlift.slice.Slice> unscaledDecimals
@Nullable protected LongBigArray overflows
protected long numberOfElements
public void ensureCapacity(long size)
ensureCapacity
in interface GroupedAccumulatorState
public io.airlift.slice.Slice getLongDecimal()
getLongDecimal
in interface LongDecimalWithOverflowState
public void setLongDecimal(io.airlift.slice.Slice value)
setLongDecimal
in interface LongDecimalWithOverflowState
public long getOverflow()
getOverflow
in interface LongDecimalWithOverflowState
public void setOverflow(long overflow)
setOverflow
in interface LongDecimalWithOverflowState
public void addOverflow(long overflow)
addOverflow
in interface LongDecimalWithOverflowState
public long getEstimatedSize()
getEstimatedSize
in interface AccumulatorState
Copyright © 2012–2022. All rights reserved.