/** Creates a read-only copy of this translator that records that a given * expression is nullable. */ public RexToLixTranslator setNullable( Map<? extends RexNode, Boolean> nullable) { if (nullable == null || nullable.isEmpty()) { return this; } return new RexToLixTranslator(program, typeFactory, root, inputGetter, list, nullable, builder, conformance, this, correlates); }
public RexToLixTranslator setCorrelates( Function1<String, InputGetter> correlates) { if (this.correlates == correlates) { return this; } return new RexToLixTranslator(program, typeFactory, root, inputGetter, list, Collections.emptyMap(), builder, conformance, this, correlates); }
public RexToLixTranslator setCorrelates( Function1<String, InputGetter> correlates) { if (this.correlates == correlates) { return this; } return new RexToLixTranslator(program, typeFactory, root, inputGetter, list, Collections.emptyMap(), builder, conformance, this, correlates); }
private RexToLixTranslator withConformance(SqlConformance conformance) { if (conformance == this.conformance) { return this; } return new RexToLixTranslator(program, typeFactory, root, inputGetter, list, Collections.emptyMap(), builder, conformance, this, correlates); }
/** Creates a read-only copy of this translator that records that a given * expression is nullable. */ public RexToLixTranslator setNullable( Map<? extends RexNode, Boolean> nullable) { if (nullable == null || nullable.isEmpty()) { return this; } return new RexToLixTranslator(program, typeFactory, root, inputGetter, list, nullable, builder, conformance, this, correlates); }
public RexToLixTranslator setBlock(BlockBuilder block) { if (block == list) { return this; } return new RexToLixTranslator(program, typeFactory, root, inputGetter, block, ImmutableMap.of(), builder, conformance, this, correlates); }
private RexToLixTranslator withConformance(SqlConformance conformance) { if (conformance == this.conformance) { return this; } return new RexToLixTranslator(program, typeFactory, root, inputGetter, list, Collections.emptyMap(), builder, conformance, this, correlates); }
public RexToLixTranslator setBlock(BlockBuilder block) { if (block == list) { return this; } return new RexToLixTranslator(program, typeFactory, root, inputGetter, block, ImmutableMap.of(), builder, conformance, this, correlates); }
/** Creates a translator for translating aggregate functions. */ public static RexToLixTranslator forAggregation(JavaTypeFactory typeFactory, BlockBuilder list, InputGetter inputGetter, SqlConformance conformance) { final ParameterExpression root = DataContext.ROOT; return new RexToLixTranslator(null, typeFactory, root, inputGetter, list, Collections.emptyMap(), new RexBuilder(typeFactory), conformance, null, null); }
/** Creates a translator for translating aggregate functions. */ public static RexToLixTranslator forAggregation(JavaTypeFactory typeFactory, BlockBuilder list, InputGetter inputGetter, SqlConformance conformance) { final ParameterExpression root = DataContext.ROOT; return new RexToLixTranslator(null, typeFactory, root, inputGetter, list, Collections.emptyMap(), new RexBuilder(typeFactory), conformance, null, null); }
public static Expression translateCondition(RexProgram program, JavaTypeFactory typeFactory, BlockBuilder list, InputGetter inputGetter, Function1<String, InputGetter> correlates, SqlConformance conformance) { if (program.getCondition() == null) { return RexImpTable.TRUE_EXPR; } final ParameterExpression root = DataContext.ROOT; RexToLixTranslator translator = new RexToLixTranslator(program, typeFactory, root, inputGetter, list, Collections.emptyMap(), new RexBuilder(typeFactory), conformance, null, null); translator = translator.setCorrelates(correlates); return translator.translate( program.getCondition(), RexImpTable.NullAs.FALSE); }
public static Expression translateCondition(RexProgram program, JavaTypeFactory typeFactory, BlockBuilder list, InputGetter inputGetter, Function1<String, InputGetter> correlates, SqlConformance conformance) { if (program.getCondition() == null) { return RexImpTable.TRUE_EXPR; } final ParameterExpression root = DataContext.ROOT; RexToLixTranslator translator = new RexToLixTranslator(program, typeFactory, root, inputGetter, list, Collections.emptyMap(), new RexBuilder(typeFactory), conformance, null, null); translator = translator.setCorrelates(correlates); return translator.translate( program.getCondition(), RexImpTable.NullAs.FALSE); }
return new RexToLixTranslator(program, typeFactory, root, inputGetter, list, Collections.emptyMap(), new RexBuilder(typeFactory), conformance, null, null)
return new RexToLixTranslator(program, typeFactory, root, inputGetter, list, Collections.emptyMap(), new RexBuilder(typeFactory), conformance, null, null)