use of org.apache.rya.indexing.statement.metadata.matching.StatementMetadataOptimizer in project incubator-rya by apache.
the class StatementMetadataExample method prettyPrintQueryPlan.
private void prettyPrintQueryPlan(String query) throws MalformedQueryException {
SPARQLParser parser = new SPARQLParser();
ParsedQuery pq = parser.parseQuery(query, null);
TupleExpr exp = pq.getTupleExpr();
new StatementMetadataOptimizer(getConf()).optimize(exp, null, null);
System.out.println("=================== RYA SPARQL QUERY PLAN ===================");
for (String str : exp.toString().split("\\r?\\n")) {
System.out.println(str);
}
System.out.println("=================== END RYA QUERY PLAN ======================");
}
use of org.apache.rya.indexing.statement.metadata.matching.StatementMetadataOptimizer in project incubator-rya by apache.
the class StatementMetadataOptimizerTest method init.
@Before
public void init() {
RdfCloudTripleStoreConfiguration mongoConf = getConf(true);
RdfCloudTripleStoreConfiguration accumuloConf = getConf(false);
mongoOptimizer = new StatementMetadataOptimizer(mongoConf);
accumuloOptimizer = new StatementMetadataOptimizer(accumuloConf);
}
Aggregations