Package org.rdfhdt.hdtjena.solver
Class ReorderTransformationHDT
- java.lang.Object
-
- org.apache.jena.sparql.engine.optimizer.reorder.ReorderTransformationSubstitution
-
- org.rdfhdt.hdtjena.solver.ReorderTransformationHDT
-
- All Implemented Interfaces:
org.apache.jena.sparql.engine.optimizer.reorder.ReorderTransformation
public class ReorderTransformationHDT extends org.apache.jena.sparql.engine.optimizer.reorder.ReorderTransformationSubstitutionReorders the Triple Patterns of a BGP by using statistics directly fetched from the dataset. At query optimization phase, when planning index-joins, some variables are known to be bound at some stage, but the actual values are unknown. In this case it uses predefined typical behaviour for RDF, using independent histograms for S/P/O, inspired by Jena's FixedReorder.- Author:
- mario.arias
-
-
Field Summary
Fields Modifier and Type Field Description org.apache.jena.sparql.engine.optimizer.StatsMatchermatcherstatic intMultiTermMaxMaximum value for a match involving two terms.static intMultiTermSampleSizeThe number of triples used for the base scale
-
Constructor Summary
Constructors Constructor Description ReorderTransformationHDT(HDTGraph graph, HDTStatistics hdtStatistics)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected doubleweight(org.apache.jena.sparql.engine.optimizer.reorder.PatternTriple pt)
-
-
-
Field Detail
-
MultiTermMax
public static final int MultiTermMax
Maximum value for a match involving two terms.- See Also:
- Constant Field Values
-
MultiTermSampleSize
public static final int MultiTermSampleSize
The number of triples used for the base scale- See Also:
- Constant Field Values
-
matcher
public final org.apache.jena.sparql.engine.optimizer.StatsMatcher matcher
-
-
Constructor Detail
-
ReorderTransformationHDT
public ReorderTransformationHDT(HDTGraph graph, HDTStatistics hdtStatistics)
-
-