this.rexBuilder = rexBuilder; this.typeFactory = rexBuilder.getTypeFactory(); RelOptQuery query = new RelOptQuery(planner); this.cluster = query.createCluster(typeFactory, rexBuilder); this.shouldConvertTableAccess = true;
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)); }
init(runtimeContextClass); final RelOptQuery query = new RelOptQuery(planner); final RelOptCluster cluster = query.createCluster(
this.rexBuilder = rexBuilder; this.typeFactory = rexBuilder.getTypeFactory(); RelOptQuery query = new RelOptQuery(planner); this.cluster = query.createCluster(typeFactory, rexBuilder); this.shouldConvertTableAccess = true;
init(runtimeContextClass); final RelOptQuery query = new RelOptQuery(planner); final RelOptCluster cluster = query.createCluster(
this.rexBuilder = rexBuilder; this.typeFactory = rexBuilder.getTypeFactory(); RelOptQuery query = new RelOptQuery(planner); this.cluster = query.createCluster(typeFactory, rexBuilder); this.shouldConvertTableAccess = true;
/** 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); }