@Test public void testReplaceQueryPatternsWithEmptyResults() { final String expectedQueryPlan = "Projection\n" + " ProjectionElemList\n" + " ProjectionElem \"matchUri\"\n" + " ProjectionElem \"match\"\n" + " EmptySet\n"; final ParsedQuery query = parseQuery(QUERY); final List<SearchQueryEvaluator> queries = new ArrayList<>(); new GeoRelationQuerySpecBuilder(new SearchIndexImpl()) .process(query.getTupleExpr(), EmptyBindingSet.getInstance(), queries); assertEquals(1, queries.size()); final GeoRelationQuerySpec querySpec = (GeoRelationQuerySpec) queries.get(0); BindingSetAssignment bsa = new BindingSetAssignment(); querySpec.replaceQueryPatternsWithResults(bsa); assertEquals( expectedQueryPlan, querySpec.getParentQueryModelNode().getParentNode().toString()); }
@Override public QueryModelNode getParentQueryModelNode() { return filter; }
GeoRelationQuerySpec extends AbstractSearchQueryEvaluator { @Override public QueryModelNode getParentQueryModelNode() { return filter; } }
GeoRelationQuerySpec extends AbstractSearchQueryEvaluator { @Override public QueryModelNode getParentQueryModelNode() { return filter; }  }
GeoRelationQuerySpec extends AbstractSearchQueryEvaluator { @Override public QueryModelNode getParentQueryModelNode() { return filter; }  void setRelation(String relation); String getRelation(); void setFunctionParent(QueryModelNode functionParent); void setQueryGeometry(Literal shape); Literal getQueryGeometry(); void setFunctionValueVar(String varName); String getFunctionValueVar(); void setGeometryPattern(StatementPattern sp); String getSubjectVar(); Var getContextVar(); IRI getGeoProperty(); String getGeoVar(); void setFilter(Filter f); Filter getFilter(); @Override QueryModelNode getParentQueryModelNode(); @Override QueryModelNode removeQueryPatterns(); }
GeoRelationQuerySpec extends AbstractSearchQueryEvaluator { @Override public QueryModelNode getParentQueryModelNode() { return filter; }  void setRelation(String relation); String getRelation(); void setFunctionParent(QueryModelNode functionParent); void setQueryGeometry(Literal shape); Literal getQueryGeometry(); void setFunctionValueVar(String varName); String getFunctionValueVar(); void setGeometryPattern(StatementPattern sp); String getSubjectVar(); Var getContextVar(); IRI getGeoProperty(); String getGeoVar(); void setFilter(Filter f); Filter getFilter(); @Override QueryModelNode getParentQueryModelNode(); @Override QueryModelNode removeQueryPatterns();  }