public class QueryOptimizer extends Object
| Modifier and Type | Method and Description |
|---|---|
static QueryOptimizer |
getInstance() |
String |
optimizeFilters(String sparql)
Optimizes the query in multiple ways:
Redo FILTER (A&&B) as FILTER(A) FILTER(B) (as an expr list)
Optimizes the FILTER disjunctions
Rewrite an algebra expression to put filters as close to their bound variables
|
String |
optimizeJoinOrder(String sparql)
Optimizes the join order of the query
|
String |
prettyPrint(String sparql)
Reformats the SPARQL query for logging purpose
|
public static QueryOptimizer getInstance()
public String optimizeJoinOrder(String sparql)
sparql - The SPARQL querypublic String optimizeFilters(String sparql)
sparql - The SPARQL queryCopyright © 2016 Chair of Distributed Information Systems - University of Passau. All rights reserved.