com.hp.hpl.jena.sparql.engine.optimizer.reorder
Class ReorderFixed
java.lang.Object
com.hp.hpl.jena.sparql.engine.optimizer.reorder.ReorderTransformationSubstitution
com.hp.hpl.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)
|
Method Summary |
double |
weight(PatternTriple pt)
Return the weight of the pattern, or -1 if no knowledge for it |
MultiTermSampleSize
public static final int MultiTermSampleSize
- The number of triples used for the base scale
- See Also:
- Constant Field Values
ReorderFixed
public ReorderFixed()
weight
public double weight(PatternTriple pt)
- Description copied from class:
ReorderTransformationSubstitution
- Return the weight of the pattern, or -1 if no knowledge for it
Licenced under the Apache License, Version 2.0