this.typeFactory = rexBuilder.getTypeFactory(); RelOptQuery query = new RelOptQuery(planner); this.cluster = query.createCluster(typeFactory, rexBuilder); this.shouldConvertTableAccess = true; this.exprConverter =
static RelOptCluster newCluster(VolcanoPlanner planner) { RelOptQuery query = new RelOptQuery(planner); RelDataTypeFactory typeFactory = new SqlTypeFactoryImpl(); return query.createCluster( typeFactory, new RexBuilder(typeFactory)); }
static RelOptCluster newCluster(VolcanoPlanner planner) { RelOptQuery query = new RelOptQuery(planner); RelDataTypeFactory typeFactory = new SqlTypeFactoryImpl(); return query.createCluster( typeFactory, new RexBuilder(typeFactory)); }
query.createCluster( rexBuilder.getTypeFactory(), rexBuilder);
this.typeFactory = rexBuilder.getTypeFactory(); RelOptQuery query = new RelOptQuery(planner); this.cluster = query.createCluster(typeFactory, rexBuilder); this.shouldConvertTableAccess = true; this.exprConverter =
query.createCluster( rexBuilder.getTypeFactory(), rexBuilder);
this.typeFactory = rexBuilder.getTypeFactory(); RelOptQuery query = new RelOptQuery(planner); this.cluster = query.createCluster(typeFactory, rexBuilder); this.shouldConvertTableAccess = true; this.exprConverter =
/** 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); }