jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r1596045 - /jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/solver/OpExecutorTDB1.java
Date Mon, 19 May 2014 20:22:17 GMT
Author: andy
Date: Mon May 19 20:22:16 2014
New Revision: 1596045

URL: http://svn.apache.org/r1596045
Log:
Add Explain point.

Modified:
    jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/solver/OpExecutorTDB1.java

Modified: jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/solver/OpExecutorTDB1.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/solver/OpExecutorTDB1.java?rev=1596045&r1=1596044&r2=1596045&view=diff
==============================================================================
--- jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/solver/OpExecutorTDB1.java (original)
+++ jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/solver/OpExecutorTDB1.java Mon May
19 20:22:16 2014
@@ -79,6 +79,14 @@ public class OpExecutorTDB1 extends OpEx
         isForTDB = (execCxt.getActiveGraph() instanceof GraphTDB) ;
     }
 
+    @Override
+    protected QueryIterator exec(Op op, QueryIterator input) {
+        if ( level < 0 )
+            // Print only at top level (and we're called before level++) 
+            Explain.explain("TDB", op, super.execCxt.getContext()) ;
+        return super.exec(op, input) ;
+    } 
+    
     // Retrieving nodes isn't so bad because they will be needed anyway.
     // And if their duplicates, likely to be cached.
     // Need to work with SolverLib which wraps the NodeId bindgins with a converter. 



Mime
View raw message