Class QuerySpec

All Implemented Interfaces:
SearchQueryEvaluator

public class QuerySpec extends AbstractSearchQueryEvaluator
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.
  • Constructor Details Link icon

  • Method Details Link icon

    • getParentQueryModelNode Link icon

      public QueryModelNode getParentQueryModelNode()
    • removeQueryPatterns Link icon

      public QueryModelNode removeQueryPatterns()
      Description copied from interface: SearchQueryEvaluator
      Removes the query patterns and returns a placeholder where the query results could be placed.
    • getMatchesPattern Link icon

      public StatementPattern getMatchesPattern()
    • getMatchesVariableName Link icon

      public String 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 Link icon

      public Collection<QuerySpec.QueryParam> getQueryPatterns()
    • getIdPattern Link icon

      public StatementPattern getIdPattern()
    • getScorePattern Link icon

      public StatementPattern getScorePattern()
    • getScoreVariableName Link icon

      public String getScoreVariableName()
      The variable name associated with the query score
      Returns:
      the name or null, if no score is queried in the pattern
    • getTypePattern Link icon

      public StatementPattern getTypePattern()
    • getQueryType Link icon

      public IRI getQueryType()
      the type of query, must equal LuceneSailSchema.LUCENE_QUERY. A null type is possible, but not valid.
      Returns:
      the type of the Query or null, if no type assigned.
    • getSubject Link icon

      public Resource getSubject()
    • isEvaluable Link icon

      public boolean isEvaluable()
    • isHighlight Link icon

      public boolean isHighlight()
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object
    • getCatQuery Link icon

      public String getCatQuery()