Class ReorderFixedAlt
- java.lang.Object
-
- org.apache.jena.sparql.engine.optimizer.reorder.ReorderTransformationSubstitution
-
- org.apache.jena.sparql.engine.optimizer.reorder.ReorderFixedAlt
-
- All Implemented Interfaces:
ReorderTransformation
public class ReorderFixedAlt extends ReorderTransformationSubstitution
Alternative fixed reorder function. This corresponds to the algorithm prior to Jena 2.11.2. It is susceptible to picking bad orders when there are lots of non-characteristic (non-selective) rdf:type triples.The default "ReorderFixed" is better in most cases because it avoids "? rdf:type T" which can be very unselective. Being data independent, that is a guess. Consider using the stats matcher for detailed control.
-
-
Field Summary
Fields Modifier and Type Field Description static StatsMatchermatcherstatic intMultiTermMaxMaximum value for a match involving two terms.static intMultiTermSampleSizeThe number of triples used for the base scale-
Fields inherited from class org.apache.jena.sparql.engine.optimizer.reorder.ReorderTransformationSubstitution
log
-
-
Constructor Summary
Constructors Constructor Description ReorderFixedAlt()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doubleweight(PatternTriple pt)-
Methods inherited from class org.apache.jena.sparql.engine.optimizer.reorder.ReorderTransformationSubstitution
reorder, reorderIndexes
-
-
-
-
Field Detail
-
MultiTermSampleSize
public static int MultiTermSampleSize
The number of triples used for the base scale
-
MultiTermMax
public static int MultiTermMax
Maximum value for a match involving two terms.
-
matcher
public static final StatsMatcher matcher
-
-
Method Detail
-
weight
public double weight(PatternTriple pt)
-
-