use of com.alibaba.graphscope.gaia.idmaker.IdMaker in project GraphScope by alibaba.
the class QueryTest method main.
public static void main(String[] args) {
GaiaConfig config = new ExperimentalGaiaConfig("conf");
GraphStoreService graphStore = new ExperimentalGraphStore(config);
IdMaker queryIdMaker = new IncrementalQueryIdMaker();
test_CR_1_1(config, graphStore, queryIdMaker);
test_CR_1_2(config, graphStore, queryIdMaker);
test_CR_2(config, graphStore, queryIdMaker);
test_CR_3_1(config, graphStore, queryIdMaker);
test_CR_3_2(config, graphStore, queryIdMaker);
test_CR_5(config, graphStore, queryIdMaker);
test_CR_6(config, graphStore, queryIdMaker);
test_CR_7(config, graphStore, queryIdMaker);
test_CR_8(config, graphStore, queryIdMaker);
test_CR_9(config, graphStore, queryIdMaker);
test_CR_11(config, graphStore, queryIdMaker);
test_CR_12(config, graphStore, queryIdMaker);
}
use of com.alibaba.graphscope.gaia.idmaker.IdMaker in project GraphScope by alibaba.
the class GremlinStepResource method createResourceBuilder.
public static GremlinStep.Builder createResourceBuilder(Step t, Configuration conf) {
GremlinStep.Builder builder = GremlinStep.newBuilder();
IdMaker tagIdMaker = PlanUtils.getTagIdMaker(conf);
if (!t.getLabels().isEmpty()) {
t.getLabels().forEach(k -> builder.addTags(Gremlin.StepTag.newBuilder().setTag((int) tagIdMaker.getId(k))));
}
if (t.getNextStep() instanceof RemovePathHistoryStep) {
RemovePathHistoryStep removeStep = (RemovePathHistoryStep) t.getNextStep();
if (removeStep.getRemoveTags() != null) {
removeStep.getRemoveTags().forEach(k -> {
builder.addRemoveTags(Gremlin.StepTag.newBuilder().setTag((int) tagIdMaker.getId(k)));
});
}
}
return builder;
}
Aggregations