Made flush and getConfiguration public.

#Baddevpushingtomaster
This commit is contained in:
Ryan Webb
2015-07-17 10:32:57 -04:00
parent 23df037c13
commit 8b0a131f5c
2 changed files with 19 additions and 1 deletions

View File

@@ -136,6 +136,23 @@ public class AccumuloGraph implements Graph, KeyIndexableGraph, IndexableGraph {
return vert;
}
/**
*
* @return an immutable copy of the configuration running this graph
*/
public Configuration getConfiguration(){
return globals.getConfig().getConfiguration();
}
/**
* Flushes the backing writers so the data is persisted.
* @throws MutationsRejectedException
*/
public void flush() throws MutationsRejectedException{
globals.getMtbw().flush();
}
@Override
public Vertex getVertex(Object id) {

View File

@@ -51,7 +51,7 @@ public class MapReduceVertex extends MapReduceElement implements Vertex, Seriali
outEdges = new LinkedList<Edge>();
}
void prepareEdge(String id, String src, String label, String dest) {
MapReduceEdge prepareEdge(String id, String src, String label, String dest) {
MapReduceEdge mre = new MapReduceEdge(parent, id, src, label, dest);
if (src.equals(getId())) {
outEdges.add(mre);
@@ -61,6 +61,7 @@ public class MapReduceVertex extends MapReduceElement implements Vertex, Seriali
if (dest.equals(getId())) {
inEdges.add(mre);
}
return mre;
}
@Override