use of com.alibaba.maxgraph.api.query.QueryCallbackManager in project GraphScope by alibaba.
the class ReadOnlyMaxGraphProcessorLoader method loadProcessor.
@Override
public void loadProcessor(Settings settings) {
OpLoader.init(settings);
QueryCallbackManager queryCallbackManager = new QueryCallbackManager() {
@Override
public QueryStatus beforeExecution(Long snapshotId) {
return null;
}
@Override
public void afterExecution(QueryStatus query) {
}
};
MixedOpProcessor mixedOpProcessor = new MixedOpProcessor(this.graph, this.instanceConfig, this.rpcAddressFetcher, this.schemaFetcher, null, null, queryCallbackManager);
mixedOpProcessor.init(settings);
MaxGraphOpLoader.addOpProcessor(mixedOpProcessor.getName(), mixedOpProcessor);
MixedTraversalOpProcessor mixedTraversalOpProcessor = new MixedTraversalOpProcessor(this.graph, this.instanceConfig, this.rpcAddressFetcher, this.schemaFetcher, null, queryCallbackManager);
mixedTraversalOpProcessor.init(settings);
MaxGraphOpLoader.addOpProcessor(mixedTraversalOpProcessor.getName(), mixedTraversalOpProcessor);
}
Aggregations