public BytecodeExpression initialValueExpression() { if (initialValue == null) { return defaultValue(type); } if (initialValue instanceof Number) { return constantNumber((Number) initialValue); } else if (initialValue instanceof Boolean) { return constantBoolean((boolean) initialValue); } else { throw new IllegalArgumentException("Unsupported initial value type: " + initialValue.getClass()); } } }
Variable singleRowBlockWriter = scope.createTempVariable(BlockBuilder.class); body.append(wasNull.set(constantBoolean(false)));
body.append(wasNull.set(constantBoolean(false)));
.append(constantBoolean(determinismEvaluator.isDeterministic(filter))) .retBoolean();
.append(state.invoke("setFirstNull", void.class, constantBoolean(false))) .append(state.invoke("setSecondNull", void.class, value.invoke("isNull", boolean.class, position))); BytecodeNode setValueNode;
public BytecodeExpression initialValueExpression() { if (initialValue == null) { return defaultValue(type); } if (initialValue instanceof Number) { return constantNumber((Number) initialValue); } else if (initialValue instanceof Boolean) { return constantBoolean((boolean) initialValue); } else { throw new IllegalArgumentException("Unsupported initial value type: " + initialValue.getClass()); } } }
public BytecodeExpression initialValueExpression() { if (initialValue == null) { return defaultValue(type); } if (initialValue instanceof Number) { return constantNumber((Number) initialValue); } else if (initialValue instanceof Boolean) { return constantBoolean((boolean) initialValue); } else { throw new IllegalArgumentException("Unsupported initial value type: " + initialValue.getClass()); } } }
Variable singleRowBlockWriter = scope.createTempVariable(BlockBuilder.class); body.append(wasNull.set(constantBoolean(false)));
body.append(wasNull.set(constantBoolean(false)));
Variable singleRowBlockWriter = scope.createTempVariable(BlockBuilder.class); body.append(wasNull.set(constantBoolean(false)));
body.append(wasNull.set(constantBoolean(false)));
.append(constantBoolean(determinismEvaluator.isDeterministic(filter))) .retBoolean();
.append(constantBoolean(determinismEvaluator.isDeterministic(filter))) .retBoolean();
assertBytecodeExpression(constantBoolean(true), true, "true"); assertBytecodeExpression(constantBoolean(false), false, "false");
.append(state.invoke("setFirstNull", void.class, constantBoolean(false))) .append(state.invoke("setSecondNull", void.class, value.invoke("isNull", boolean.class, position))); BytecodeNode setValueNode;
.append(state.invoke("setFirstNull", void.class, constantBoolean(false))) .append(state.invoke("setSecondNull", void.class, value.invoke("isNull", boolean.class, position))); BytecodeNode setValueNode;