Search in sources :

Example 1 with TraversalOpProcessor

use of com.alibaba.graphscope.gaia.processor.TraversalOpProcessor in project GraphScope by alibaba.

the class GaiaGraphServer method loadProcessor.

private static void loadProcessor(GaiaConfig config, AbstractBroadcastProcessor broadcastProcessor, GraphStoreService storeService) {
    try {
        Map<String, OpProcessor> gaiaProcessors = new HashMap<>();
        gaiaProcessors.put("", new GaiaGraphOpProcessor(config, storeService, broadcastProcessor));
        gaiaProcessors.put("plan", new LogicPlanProcessor(config, storeService));
        gaiaProcessors.put("traversal", new TraversalOpProcessor(config, storeService, broadcastProcessor));
        PlanUtils.setFinalStaticField(OpLoader.class, "processors", gaiaProcessors);
    } catch (Exception e) {
        throw new RuntimeException(e);
    }
}
Also used : HashMap(java.util.HashMap) OpProcessor(org.apache.tinkerpop.gremlin.server.OpProcessor) TraversalOpProcessor(com.alibaba.graphscope.gaia.processor.TraversalOpProcessor) GaiaGraphOpProcessor(com.alibaba.graphscope.gaia.processor.GaiaGraphOpProcessor) GaiaGraphOpProcessor(com.alibaba.graphscope.gaia.processor.GaiaGraphOpProcessor) LogicPlanProcessor(com.alibaba.graphscope.gaia.processor.LogicPlanProcessor) TraversalOpProcessor(com.alibaba.graphscope.gaia.processor.TraversalOpProcessor)

Example 2 with TraversalOpProcessor

use of com.alibaba.graphscope.gaia.processor.TraversalOpProcessor in project GraphScope by alibaba.

the class GaiaGraphServer method loadProcessor.

private static void loadProcessor(GaiaConfig config, AbstractBroadcastProcessor broadcastProcessor, GraphStoreService storeService) {
    try {
        Map<String, OpProcessor> gaiaProcessors = new HashMap<>();
        gaiaProcessors.put("", new GaiaGraphOpProcessor(config, storeService, broadcastProcessor));
        gaiaProcessors.put("plan", new LogicPlanProcessor(config, storeService));
        gaiaProcessors.put("traversal", new TraversalOpProcessor(config, storeService, broadcastProcessor));
        PlanUtils.setFinalStaticField(OpLoader.class, "processors", gaiaProcessors);
    } catch (Exception e) {
        throw new RuntimeException(e);
    }
}
Also used : HashMap(java.util.HashMap) OpProcessor(org.apache.tinkerpop.gremlin.server.OpProcessor) TraversalOpProcessor(com.alibaba.graphscope.gaia.processor.TraversalOpProcessor) GaiaGraphOpProcessor(com.alibaba.graphscope.gaia.processor.GaiaGraphOpProcessor) GaiaGraphOpProcessor(com.alibaba.graphscope.gaia.processor.GaiaGraphOpProcessor) LogicPlanProcessor(com.alibaba.graphscope.gaia.processor.LogicPlanProcessor) TraversalOpProcessor(com.alibaba.graphscope.gaia.processor.TraversalOpProcessor)

Aggregations

GaiaGraphOpProcessor (com.alibaba.graphscope.gaia.processor.GaiaGraphOpProcessor)2 LogicPlanProcessor (com.alibaba.graphscope.gaia.processor.LogicPlanProcessor)2 TraversalOpProcessor (com.alibaba.graphscope.gaia.processor.TraversalOpProcessor)2 HashMap (java.util.HashMap)2 OpProcessor (org.apache.tinkerpop.gremlin.server.OpProcessor)2