You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2014/05/19 22:22:17 UTC
svn commit: r1596045 -
/jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/solver/OpExecutorTDB1.java
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.