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 2013/01/29 14:06:25 UTC
svn commit: r1439877 -
/jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/solver/OpExecutorTDB.java
Author: andy
Date: Tue Jan 29 13:06:25 2013
New Revision: 1439877
URL: http://svn.apache.org/viewvc?rev=1439877&view=rev
Log:
No need to reorder patterns of one quad
Modified:
jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/solver/OpExecutorTDB.java
Modified: jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/solver/OpExecutorTDB.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/solver/OpExecutorTDB.java?rev=1439877&r1=1439876&r2=1439877&view=diff
==============================================================================
--- jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/solver/OpExecutorTDB.java (original)
+++ jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/solver/OpExecutorTDB.java Tue Jan 29 13:06:25 2013
@@ -229,15 +229,17 @@ public class OpExecutorTDB extends OpExe
return optimizeExecuteTriples(ds.getEffectiveDefaultGraph(), input, bgp, exprs, execCxt) ;
// ---- Execute quads+filters
- ReorderTransformation transform = ds.getReorderTransform() ;
-
- if ( transform != null )
+ if ( bgp.size() >= 2 )
{
- QueryIterPeek peek = QueryIterPeek.create(input, execCxt) ;
- input = peek ; // Original input now invalid.
- bgp = reorder(bgp, peek, transform) ;
+ ReorderTransformation transform = ds.getReorderTransform() ;
+
+ if ( transform != null )
+ {
+ QueryIterPeek peek = QueryIterPeek.create(input, execCxt) ;
+ input = peek ; // Original input now invalid.
+ bgp = reorder(bgp, peek, transform) ;
+ }
}
-
// -- Filter placement
Op op = null ;
if ( exprs != null )