Class ReorderFixed
- java.lang.Object
-
- org.apache.jena.sparql.engine.optimizer.reorder.ReorderTransformationSubstitution
-
- org.apache.jena.sparql.engine.optimizer.reorder.ReorderFixed
-
- All Implemented Interfaces:
ReorderTransformation
public class ReorderFixed extends ReorderTransformationSubstitution
Fixed scheme for choosing based on the triple patterns, without looking at the data. It gives a weight to a triple, with more grounded terms being considered better. It weights against rdf:type because that can be very unselective (e.g. ?x rdf:type rdf:Resource)
-
-
Field Summary
Fields Modifier and Type Field Description 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 ReorderFixed()
-
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 final int MultiTermSampleSize
The number of triples used for the base scale- See Also:
- Constant Field Values
-
-
Method Detail
-
weight
public double weight(PatternTriple pt)
-
-