Package org.eclipse.rdf4j.sail.lucene
Class QuerySpec
java.lang.Object
org.eclipse.rdf4j.sail.lucene.AbstractSearchQueryEvaluator
org.eclipse.rdf4j.sail.lucene.QuerySpec
- All Implemented Interfaces:
SearchQueryEvaluator
A QuerySpec holds information extracted from a TupleExpr corresponding with a single Lucene query. Access the
patterns or use the get-methods to get the names of the variables to bind.
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionQuerySpec
(String matchesVarName, String propertyVarName, String scoreVarName, String snippetVarName, Resource subject, String queryString, IRI propertyURI) QuerySpec
(StatementPattern matchesPattern, Collection<QuerySpec.QueryParam> queryPatterns, StatementPattern scorePattern, StatementPattern typePattern, StatementPattern idPattern, Resource subject) -
Method Summary
Modifier and TypeMethodDescriptionreturn the name of the bound variable that should match the querythe type of query, must equalLuceneSailSchema.LUCENE_QUERY
.The variable name associated with the query scoreboolean
boolean
Removes the query patterns and returns a placeholder where the query results could be placed.toString()
Methods inherited from class org.eclipse.rdf4j.sail.lucene.AbstractSearchQueryEvaluator
replaceQueryPatternsWithResults
-
Constructor Details
-
QuerySpec
public QuerySpec(StatementPattern matchesPattern, Collection<QuerySpec.QueryParam> queryPatterns, StatementPattern scorePattern, StatementPattern typePattern, StatementPattern idPattern, Resource subject) -
QuerySpec
-
-
Method Details
-
getParentQueryModelNode
-
removeQueryPatterns
Description copied from interface:SearchQueryEvaluator
Removes the query patterns and returns a placeholder where the query results could be placed. -
getMatchesPattern
-
getMatchesVariableName
return the name of the bound variable that should match the query- Returns:
- the name of the variable or null, if no name set
-
getQueryPatterns
-
getIdPattern
-
getScorePattern
-
getScoreVariableName
The variable name associated with the query score- Returns:
- the name or null, if no score is queried in the pattern
-
getTypePattern
-
getQueryType
the type of query, must equalLuceneSailSchema.LUCENE_QUERY
. A null type is possible, but not valid.- Returns:
- the type of the Query or null, if no type assigned.
-
getSubject
-
isEvaluable
public boolean isEvaluable() -
isHighlight
public boolean isHighlight() -
toString
-
getCatQuery
-