Search in sources :

Example 1 with QueryCallbackManager

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);
}
Also used : MixedTraversalOpProcessor(com.alibaba.maxgraph.server.processor.MixedTraversalOpProcessor) MixedOpProcessor(com.alibaba.maxgraph.server.processor.MixedOpProcessor) QueryCallbackManager(com.alibaba.maxgraph.api.query.QueryCallbackManager) QueryStatus(com.alibaba.maxgraph.api.query.QueryStatus)

Aggregations

QueryCallbackManager (com.alibaba.maxgraph.api.query.QueryCallbackManager)1 QueryStatus (com.alibaba.maxgraph.api.query.QueryStatus)1 MixedOpProcessor (com.alibaba.maxgraph.server.processor.MixedOpProcessor)1 MixedTraversalOpProcessor (com.alibaba.maxgraph.server.processor.MixedTraversalOpProcessor)1