Package org.eclipse.rdf4j.sail.lucene
Class DistanceQuerySpecBuilder
- java.lang.Object
-
- org.eclipse.rdf4j.sail.lucene.DistanceQuerySpecBuilder
-
- All Implemented Interfaces:
SearchQueryInterpreter
public class DistanceQuerySpecBuilder extends java.lang.Object implements SearchQueryInterpreter
-
-
Field Summary
Fields Modifier and Type Field Description private SearchIndex
index
-
Constructor Summary
Constructors Constructor Description DistanceQuerySpecBuilder(SearchIndex index)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static java.lang.Object[]
getFilterAndDistance(QueryModelNode node, java.lang.String compareArgVarName)
private static boolean
isChildOf(QueryModelNode child, QueryModelNode parent)
void
process(TupleExpr tupleExpr, BindingSet bindings, java.util.Collection<SearchQueryEvaluator> results)
Processes a TupleExpr into a set of SearchQueryEvaluators.
-
-
-
Field Detail
-
index
private final SearchIndex index
-
-
Constructor Detail
-
DistanceQuerySpecBuilder
public DistanceQuerySpecBuilder(SearchIndex index)
-
-
Method Detail
-
process
public void process(TupleExpr tupleExpr, BindingSet bindings, java.util.Collection<SearchQueryEvaluator> results) throws SailException
Description copied from interface:SearchQueryInterpreter
Processes a TupleExpr into a set of SearchQueryEvaluators.- Specified by:
process
in interfaceSearchQueryInterpreter
- Parameters:
tupleExpr
- the TupleExpr to process.bindings
- any bindings.results
- the Collection to add any SearchQueryEvaluators to.- Throws:
SailException
-
isChildOf
private static boolean isChildOf(QueryModelNode child, QueryModelNode parent)
-
getFilterAndDistance
private static java.lang.Object[] getFilterAndDistance(QueryModelNode node, java.lang.String compareArgVarName)
-
-