From: <tho...@us...> - 2014-02-23 00:18:43
|
Revision: 7874 http://sourceforge.net/p/bigdata/code/7874 Author: thompsonbry Date: 2014-02-23 00:18:40 +0000 (Sun, 23 Feb 2014) Log Message: ----------- Since I committed the change to extract depth from BFS, I just made that code conditional so it will not break other algorithms (e.g., SSSP). This still needs to be abstracted correctly so it will report the "state". I think that the right approach might be to hand the IGASProgram the binding set and ordered list of variables (out, out1, out2) and let it create the bindings as appropriate for that algorithm. Modified Paths: -------------- branches/RDR/bigdata-rdf/src/java/com/bigdata/rdf/graph/impl/bd/GASService.java Modified: branches/RDR/bigdata-rdf/src/java/com/bigdata/rdf/graph/impl/bd/GASService.java =================================================================== --- branches/RDR/bigdata-rdf/src/java/com/bigdata/rdf/graph/impl/bd/GASService.java 2014-02-23 00:14:26 UTC (rev 7873) +++ branches/RDR/bigdata-rdf/src/java/com/bigdata/rdf/graph/impl/bd/GASService.java 2014-02-23 00:18:40 UTC (rev 7874) @@ -755,7 +755,7 @@ if (outVar != null) { vals[j++] = new Constant(v); } - if (stateVar != null) { + if (stateVar != null && gasProgram instanceof BFS) { /* * FIXME Need an API for self-reporting of an IV by * the IGASProgram. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |