use of com.alibaba.graphscope.gaia.broadcast.RpcBroadcastProcessor 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);
}
}
Aggregations