use of com.alibaba.graphscope.gaia.plan.translator.builder.TraversalBuilder in project GraphScope by alibaba.
the class QueryTest method test_CR_6.
public static void test_CR_6(GaiaConfig config, GraphStoreService storeService, IdMaker queryIdMaker) {
Traversal testTraversal = CR_6();
GaiaGraphOpProcessor.applyStrategy(testTraversal, config, storeService);
long queryId = (long) queryIdMaker.getId(testTraversal.asAdmin());
AbstractBuilder job = new TraversalTranslator((new TraversalBuilder(testTraversal.asAdmin())).addConfig(PlanConfig.QUERY_ID, queryId).addConfig(PlanConfig.TAG_ID_MAKER, new TagIdMaker(testTraversal.asAdmin())).addConfig(PlanConfig.QUERY_CONFIG, PlanUtils.getDefaultConfig(queryId, config))).translate();
PlanUtils.print(job);
}
use of com.alibaba.graphscope.gaia.plan.translator.builder.TraversalBuilder in project GraphScope by alibaba.
the class QueryTest method test_CR_7.
public static void test_CR_7(GaiaConfig config, GraphStoreService storeService, IdMaker queryIdMaker) {
Traversal testTraversal = CR_7();
GaiaGraphOpProcessor.applyStrategy(testTraversal, config, storeService);
long queryId = (long) queryIdMaker.getId(testTraversal.asAdmin());
AbstractBuilder job = new TraversalTranslator((new TraversalBuilder(testTraversal.asAdmin())).addConfig(PlanConfig.QUERY_ID, queryId).addConfig(PlanConfig.TAG_ID_MAKER, new TagIdMaker(testTraversal.asAdmin())).addConfig(PlanConfig.QUERY_CONFIG, PlanUtils.getDefaultConfig(queryId, config))).translate();
PlanUtils.print(job);
}
use of com.alibaba.graphscope.gaia.plan.translator.builder.TraversalBuilder in project GraphScope by alibaba.
the class QueryTest method test_CR_1_1.
public static void test_CR_1_1(GaiaConfig config, GraphStoreService storeService, IdMaker queryIdMaker) {
Traversal testTraversal = CR_1_1();
GaiaGraphOpProcessor.applyStrategy(testTraversal, config, storeService);
long queryId = (long) queryIdMaker.getId(testTraversal.asAdmin());
AbstractBuilder job = new TraversalTranslator((new TraversalBuilder(testTraversal.asAdmin())).addConfig(PlanConfig.QUERY_ID, queryId).addConfig(PlanConfig.TAG_ID_MAKER, new TagIdMaker(testTraversal.asAdmin())).addConfig(PlanConfig.QUERY_CONFIG, PlanUtils.getDefaultConfig(queryId, config))).translate();
PlanUtils.print(job);
}
use of com.alibaba.graphscope.gaia.plan.translator.builder.TraversalBuilder in project GraphScope by alibaba.
the class QueryTest method test_CR_1_2.
public static void test_CR_1_2(GaiaConfig config, GraphStoreService storeService, IdMaker queryIdMaker) {
Traversal testTraversal = CR_1_2();
GaiaGraphOpProcessor.applyStrategy(testTraversal, config, storeService);
long queryId = (long) queryIdMaker.getId(testTraversal.asAdmin());
AbstractBuilder job = new TraversalTranslator((new TraversalBuilder(testTraversal.asAdmin())).addConfig(PlanConfig.QUERY_ID, queryId).addConfig(PlanConfig.TAG_ID_MAKER, new TagIdMaker(testTraversal.asAdmin())).addConfig(PlanConfig.QUERY_CONFIG, PlanUtils.getDefaultConfig(queryId, config))).translate();
PlanUtils.print(job);
}
use of com.alibaba.graphscope.gaia.plan.translator.builder.TraversalBuilder in project GraphScope by alibaba.
the class QueryTest method test_CR_3_1.
public static void test_CR_3_1(GaiaConfig config, GraphStoreService storeService, IdMaker queryIdMaker) {
Traversal testTraversal = CR_3_1();
GaiaGraphOpProcessor.applyStrategy(testTraversal, config, storeService);
long queryId = (long) queryIdMaker.getId(testTraversal.asAdmin());
AbstractBuilder job = new TraversalTranslator((new TraversalBuilder(testTraversal.asAdmin())).addConfig(PlanConfig.QUERY_ID, queryId).addConfig(PlanConfig.TAG_ID_MAKER, new TagIdMaker(testTraversal.asAdmin())).addConfig(PlanConfig.QUERY_CONFIG, PlanUtils.getDefaultConfig(queryId, config))).translate();
PlanUtils.print(job);
}
Aggregations