this.rexBuilder = rexBuilder; this.typeFactory = rexBuilder.getTypeFactory(); RelOptQuery query = new RelOptQuery(planner); this.cluster = query.createCluster(typeFactory, rexBuilder); this.shouldConvertTableAccess = true; this.exprConverter =
public String getOrCreateCorrelVariable() { if (correlVariable == null) { correlVariable = getQuery().createCorrel(); getQuery().mapCorrel(correlVariable, this); } return correlVariable; }
RexNode condition = null; for (Pair<Integer, Integer> p : Pair.zip(leftKeys, rightKeys)) { final String dyn_inIdStr = cluster.getQuery().createCorrel(); final int dyn_inId = RelOptQuery.getCorrelOrdinal(dyn_inIdStr);
public void registerCorrelVariable(String correlVariable) { assert this.correlVariable == null; this.correlVariable = correlVariable; getQuery().mapCorrel(correlVariable, this); }
RexNode condition = null; for (IntPair p : joinInfo.pairs()) { final String dynInIdStr = cluster.getQuery().createCorrel(); final int dynInId = RelOptQuery.getCorrelOrdinal(dynInIdStr);
public void registerCorrelVariable(String correlVariable) { assert (this.correlVariable == null); this.correlVariable = correlVariable; getQuery().mapCorrel(correlVariable, this); }
static RelOptCluster newCluster(VolcanoPlanner planner) { RelOptQuery query = new RelOptQuery(planner); RelDataTypeFactory typeFactory = new SqlTypeFactoryImpl(); return query.createCluster( typeFactory, new RexBuilder(typeFactory)); }
public String getOrCreateCorrelVariable() { if (correlVariable == null) { correlVariable = getQuery().createCorrel(); getQuery().mapCorrel(correlVariable, this); } return correlVariable; }
static RelOptCluster newCluster(VolcanoPlanner planner) { RelOptQuery query = new RelOptQuery(planner); RelDataTypeFactory typeFactory = new SqlTypeFactoryImpl(); return query.createCluster( typeFactory, new RexBuilder(typeFactory)); }
this.rexBuilder = rexBuilder; this.typeFactory = rexBuilder.getTypeFactory(); RelOptQuery query = new RelOptQuery(planner); this.cluster = query.createCluster(typeFactory, rexBuilder); this.shouldConvertTableAccess = true; this.exprConverter =
init(runtimeContextClass); final RelOptQuery query = new RelOptQuery(planner); final RelOptCluster cluster = query.createCluster( rexBuilder.getTypeFactory(), rexBuilder);
this.rexBuilder = rexBuilder; this.typeFactory = rexBuilder.getTypeFactory(); RelOptQuery query = new RelOptQuery(planner); this.cluster = query.createCluster(typeFactory, rexBuilder); this.shouldConvertTableAccess = true; this.exprConverter =
init(runtimeContextClass); final RelOptQuery query = new RelOptQuery(planner); final RelOptCluster cluster = query.createCluster( rexBuilder.getTypeFactory(), rexBuilder);
/** Executes a prepare action. */ public <R> R perform(OptiqServerStatement statement, Frameworks.PrepareAction<R> action) { final OptiqPrepare.Context prepareContext = statement.createPrepareContext(); final JavaTypeFactory typeFactory = prepareContext.getTypeFactory(); OptiqCatalogReader catalogReader = new OptiqCatalogReader(prepareContext.getRootSchema(), prepareContext.config().caseSensitive(), prepareContext.getDefaultSchemaPath(), typeFactory); final RexBuilder rexBuilder = new RexBuilder(typeFactory); final RelOptPlanner planner = createPlanner(prepareContext, action.getConfig().getContext(), action.getConfig().getCostFactory()); final RelOptQuery query = new RelOptQuery(planner); final RelOptCluster cluster = query.createCluster(rexBuilder.getTypeFactory(), rexBuilder); return action.apply(cluster, catalogReader, prepareContext.getRootSchema().plus(), statement); }