public static void combine(BlockPositionState state, BlockPositionState otherState) { if (state.getBlock() != null) { return; } state.setBlock(otherState.getBlock()); state.setPosition(otherState.getPosition()); } }
public static void combine(NullableBooleanState state, NullableBooleanState otherState) { if (!state.isNull()) { return; } state.setNull(false); state.setBoolean(otherState.getBoolean()); }
@Override public HyperLogLogState createSingleState() { return new SingleHyperLogLogState(); }
@Override public KeyValuePairsState createGroupedState() { return new GroupedState(keyType, valueType); }
@Override public DigestAndPercentileArrayState createGroupedState() { return new GroupedDigestAndPercentileArrayState(); }
@Override public KeyValuePairsState createSingleState() { return new SingleState(keyType, valueType); }
@Override public MinMaxNState createSingleState() { return new SingleMinMaxNState(); }
@Override public MinMaxNState createGroupedState() { return new GroupedMinMaxNState(); }
@Override public DigestAndPercentileState createSingleState() { return new SingleDigestAndPercentileState(); }
@Override public DigestAndPercentileState createGroupedState() { return new GroupedDigestAndPercentileState(); }
@Override public void deserialize(Block block, int index, BlockPositionState state) { // Use the original serialized block as the underlying block for the state to save object creation overhead state.setPosition(index); state.setBlock(block); } }
@Override public long getEstimatedSize() { if (getLongDecimal() == null) { return SIZE_OF_LONG; } return SIZE; } }
@Override public LongDecimalWithOverflowState createSingleState() { return new SingleLongDecimalWithOverflowState(); }
@Override public LongDecimalWithOverflowAndLongState createSingleState() { return new SingleLongDecimalWithOverflowAndLongState(); }
@Override public LongDecimalWithOverflowState createGroupedState() { return new GroupedLongDecimalWithOverflowState(); }