use of com.hazelcast.jet.sql.impl.parse.QueryConverter in project hazelcast by hazelcast.
the class OptimizerContext method create.
public static OptimizerContext create(HazelcastSchema rootSchema, List<List<String>> schemaPaths, List<Object> arguments, int memberCount, IMapResolver iMapResolver) {
DistributionTraitDef distributionTraitDef = new DistributionTraitDef(memberCount);
Prepare.CatalogReader catalogReader = createCatalogReader(rootSchema, schemaPaths);
HazelcastSqlValidator validator = new HazelcastSqlValidator(catalogReader, arguments, iMapResolver);
VolcanoPlanner volcanoPlanner = createPlanner(distributionTraitDef);
HazelcastRelOptCluster cluster = createCluster(volcanoPlanner, distributionTraitDef);
QueryParser parser = new QueryParser(validator);
QueryConverter converter = new QueryConverter(validator, catalogReader, cluster);
QueryPlanner planner = new QueryPlanner(volcanoPlanner);
return new OptimizerContext(cluster, parser, converter, planner);
}
Aggregations