use of com.baidu.hugegraph.job.GremlinJob in project incubator-hugegraph by apache.
the class TaskCoreTest method runGremlinJob.
private HugeTask<Object> runGremlinJob(String gremlin) {
HugeGraph graph = graph();
GremlinRequest request = new GremlinRequest();
request.gremlin(gremlin);
JobBuilder<Object> builder = JobBuilder.of(graph);
builder.name("test-gremlin-job").input(request.toJson()).job(new GremlinJob());
return builder.schedule();
}
Aggregations