/** Creates a read-only copy of this translator that records that a given * expression is nullable. */ public RexToLixTranslator setNullable(RexNode e, boolean nullable) { return setNullable(Collections.singletonMap(e, nullable)); }
/** Creates a read-only copy of this translator that records that a given * expression is nullable. */ public RexToLixTranslator setNullable(RexNode e, boolean nullable) { return setNullable(Collections.singletonMap(e, nullable)); }
public RexToLixTranslator rowTranslator(Expression rowIndex) { return getFrame().rowTranslator(rowIndex) .setNullable(currentNullables()); }
public RexToLixTranslator rowTranslator(Expression rowIndex) { return getFrame().rowTranslator(rowIndex) .setNullable(currentNullables()); }
public RexToLixTranslator rowTranslator() { final SqlConformance conformance = SqlConformanceEnum.DEFAULT; // TODO: get this from implementor return RexToLixTranslator.forAggregation(typeFactory, currentBlock(), new RexToLixTranslator.InputGetterImpl( Collections.singletonList( Pair.of((Expression) inParameter, inputPhysType))), conformance) .setNullable(currentNullables()); } };
public RexToLixTranslator rowTranslator() { final SqlConformance conformance = SqlConformanceEnum.DEFAULT; // TODO: get this from implementor return RexToLixTranslator.forAggregation(typeFactory, currentBlock(), new RexToLixTranslator.InputGetterImpl( Collections.singletonList( Pair.of((Expression) inParameter, inputPhysType))), conformance) .setNullable(currentNullables()); } };
public RexToLixTranslator rowTranslator() { return RexToLixTranslator.forAggregation(typeFactory, currentBlock(), new RexToLixTranslator.InputGetterImpl( Collections.singletonList( Pair.of(inParameter, inputPhysType))), implementor.getConformance()) .setNullable(currentNullables()); } };
public RexToLixTranslator rowTranslator() { return RexToLixTranslator.forAggregation(typeFactory, currentBlock(), new RexToLixTranslator.InputGetterImpl( Collections.singletonList( Pair.of((Expression) inParameter, inputPhysType))), implementor.getConformance()) .setNullable(currentNullables()); } };
translator.translate( operand.e, NullAs.IS_NULL)); translator = translator.setNullable(operand.e, false); translator.translate( operand.e, NullAs.IS_NOT_NULL)); translator = translator.setNullable(operand.e, false); translator.translate( operand.e, NullAs.IS_NULL)); translator = translator.setNullable(operand.e, false); translator = translator.setNullable(nullable);
translator.translate( operand.e, NullAs.IS_NULL)); translator = translator.setNullable(operand.e, false); translator.translate( operand.e, NullAs.IS_NOT_NULL)); translator = translator.setNullable(operand.e, false); translator.translate( operand.e, NullAs.IS_NULL)); translator = translator.setNullable(operand.e, false); translator = translator.setNullable(nullable);