Search in sources :

Example 1 with RpcChannelFetcher

use of com.alibaba.graphscope.gaia.broadcast.channel.RpcChannelFetcher in project GraphScope by alibaba.

the class GaiaProcessorLoader method load.

public static void load(GaiaConfig config, GraphStoreService storeService) {
    try {
        Map<String, OpProcessor> gaiaProcessors = new HashMap<>();
        RpcChannelFetcher fetcher = new HostsChannelFetcher(config);
        AbstractBroadcastProcessor broadcastProcessor = new RpcBroadcastProcessor(fetcher);
        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 : HostsChannelFetcher(com.alibaba.graphscope.gaia.broadcast.channel.HostsChannelFetcher) HashMap(java.util.HashMap) AbstractBroadcastProcessor(com.alibaba.graphscope.gaia.broadcast.AbstractBroadcastProcessor) RpcBroadcastProcessor(com.alibaba.graphscope.gaia.broadcast.RpcBroadcastProcessor) RpcChannelFetcher(com.alibaba.graphscope.gaia.broadcast.channel.RpcChannelFetcher) OpProcessor(org.apache.tinkerpop.gremlin.server.OpProcessor)

Aggregations

AbstractBroadcastProcessor (com.alibaba.graphscope.gaia.broadcast.AbstractBroadcastProcessor)1 RpcBroadcastProcessor (com.alibaba.graphscope.gaia.broadcast.RpcBroadcastProcessor)1 HostsChannelFetcher (com.alibaba.graphscope.gaia.broadcast.channel.HostsChannelFetcher)1 RpcChannelFetcher (com.alibaba.graphscope.gaia.broadcast.channel.RpcChannelFetcher)1 HashMap (java.util.HashMap)1 OpProcessor (org.apache.tinkerpop.gremlin.server.OpProcessor)1