// Create and open main graph
map = new HashMap();
map.put("storage.backend", “hbase);
map.put("storage.hostname", “xx.xx.xx.xx,yy.yy.yy.yy,zz.zz.zz.zz”);
map.put("storage.hbase.table”, “TABLE_A”);
map.put("graph.graphname", “GRAPH”);
configuration = new MapConfiguration(map);
configuration.setDelimiterParsingDisabled(True);
ConfiguredGraphFactory.createConfiguration(configuration);
graph = ConfiguredGraphFactory.open(“GRAPH”);
// Create, open and update replacement graph
map = new HashMap();
map.put("storage.backend", “hbase);
map.put("storage.hostname", “xx.xx.xx.xx,yy.yy.yy.yy,zz.zz.zz.zz”);
map.put("storage.hbase.table”, “TABLE_B”);
map.put("graph.graphname", “GRAPH_TEMP”);
configuration = new MapConfiguration(map);
configuration.setDelimiterParsingDisabled(True);
ConfiguredGraphFactory.createConfiguration(configuration);
graph = ConfiguredGraphFactory.open(“GRAPH_TEMP”);
// Modify GRAPH_TEMP and when it’s time to make that the live one:
map = new HashMap();
map.put("storage.hbase.table”, “TABLE_B);
ConfiguredGraphFactory.updateConfiguration(“GRAPH”,map);
graph = ConfiguredGraphFactory.open(“GRAPH”);