jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r1342351 - in /jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/engine: iterator/QueryIterBlockTriplesQH.java main/StageGeneratorGeneric.java
Date Thu, 24 May 2012 17:30:41 GMT
Author: andy
Date: Thu May 24 17:30:41 2012
New Revision: 1342351

URL: http://svn.apache.org/viewvc?rev=1342351&view=rev
Log:
Remove unused QueryHandler code

Removed:
    jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/engine/iterator/QueryIterBlockTriplesQH.java
Modified:
    jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/engine/main/StageGeneratorGeneric.java

Modified: jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/engine/main/StageGeneratorGeneric.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/engine/main/StageGeneratorGeneric.java?rev=1342351&r1=1342350&r2=1342351&view=diff
==============================================================================
--- jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/engine/main/StageGeneratorGeneric.java
(original)
+++ jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/engine/main/StageGeneratorGeneric.java
Thu May 24 17:30:41 2012
@@ -19,33 +19,24 @@
 package com.hp.hpl.jena.sparql.engine.main;
 
 import static com.hp.hpl.jena.sparql.engine.optimizer.reorder.PatternElements.TERM ;
+import org.openjena.atlas.logging.Log ;
 
 import com.hp.hpl.jena.graph.Graph ;
 import com.hp.hpl.jena.graph.GraphStatisticsHandler ;
 import com.hp.hpl.jena.graph.Node ;
 import com.hp.hpl.jena.mem.GraphMem ;
 import com.hp.hpl.jena.mem.faster.GraphMemFaster ;
-import com.hp.hpl.jena.sparql.ARQConstants ;
 import com.hp.hpl.jena.sparql.core.BasicPattern ;
 import com.hp.hpl.jena.sparql.engine.ExecutionContext ;
 import com.hp.hpl.jena.sparql.engine.QueryIterator ;
 import com.hp.hpl.jena.sparql.engine.iterator.QueryIterBlockTriples ;
-import com.hp.hpl.jena.sparql.engine.iterator.QueryIterBlockTriplesQH ;
-import com.hp.hpl.jena.sparql.engine.optimizer.reorder.PatternTriple ;
-import com.hp.hpl.jena.sparql.engine.optimizer.reorder.ReorderFixed ;
-import com.hp.hpl.jena.sparql.engine.optimizer.reorder.ReorderLib ;
-import com.hp.hpl.jena.sparql.engine.optimizer.reorder.ReorderTransformation ;
-import com.hp.hpl.jena.sparql.engine.optimizer.reorder.ReorderTransformationBase ;
+import com.hp.hpl.jena.sparql.engine.optimizer.reorder.* ;
 import com.hp.hpl.jena.sparql.mgt.Explain ;
-import org.openjena.atlas.logging.Log ;
-import com.hp.hpl.jena.sparql.util.Symbol ;
 import com.hp.hpl.jena.sparql.util.Utils ;
 
 /** Generic - always works - StageGenerator */
 public class StageGeneratorGeneric implements StageGenerator
 {
-    public final static Symbol altMatcher = ARQConstants.allocSymbol("altmatcher") ;
-    
     public StageGeneratorGeneric() {}
     
     @Override
@@ -97,14 +88,6 @@ public class StageGeneratorGeneric imple
         return execution.execute(pattern, input, execCxt) ; 
     }
     
-    // ---- Execution policies
-    private static StageGenerator executeQueryHandler = new StageGenerator() {
-        @Override
-        public QueryIterator execute(BasicPattern pattern, QueryIterator input, ExecutionContext
execCxt)
-        {
-            return QueryIterBlockTriplesQH.create(input, pattern, execCxt) ;
-        }} ;
-
     private static StageGenerator executeInline = new StageGenerator() {
         @Override
         public QueryIterator execute(BasicPattern pattern, QueryIterator input, ExecutionContext
execCxt)
@@ -126,29 +109,12 @@ public class StageGeneratorGeneric imple
         return new ReorderStatsHandler(graph, graph.getStatisticsHandler()) ;
     }
 
-    /* Execution - allow the inline matcher to be turned off */ 
-    private static QueryIterator baseExecute(BasicPattern pattern, QueryIterator input, ExecutionContext
execCxt)
-    {
-        if ( execCxt.getContext().isTrueOrUndef(altMatcher) )
-            return executeInline(pattern, input, execCxt) ;
-        else
-            return executeQueryHandler(pattern, input, execCxt) ;
-    }
-    
     /** Use the inline BGP matcher */ 
     public static QueryIterator executeInline(BasicPattern pattern, QueryIterator input,
ExecutionContext execCxt)
     {
         return QueryIterBlockTriples.create(input, pattern, execCxt) ;
     }
 
-    /** Use the graph's query handler. */ 
-    private static QueryIterator executeQueryHandler(BasicPattern pattern, QueryIterator
input, ExecutionContext execCxt)
-    {
-        return QueryIterBlockTriplesQH.create(input, pattern, execCxt) ;
-    }
-    
-    
-    
     /** Reorder a basic graph pattern using a graph statistic handler */
     private static class ReorderStatsHandler extends ReorderTransformationBase
     {



Mime
View raw message