Interface LuceneQueryBuilder<Q,​S,​E extends java.lang.Throwable>

  • Type Parameters:
    Q - the query type used by the query engine implementation
    S - the sort type used by the query engine implementation
    E - the exception it throws
    All Known Implementing Classes:
    LuceneQuery

    public interface LuceneQueryBuilder<Q,​S,​E extends java.lang.Throwable>
    Author:
    andyh
    • Method Detail

      • buildQuery

        Q buildQuery​(java.util.Set<java.lang.String> selectors,
                     LuceneQueryBuilderContext<Q,​S,​E> luceneContext,
                     FunctionEvaluationContext functionContext)
              throws E extends java.lang.Throwable
        Build the matching lucene query
        Parameters:
        functionContext - FunctionEvaluationContext
        Returns:
        - the query
        Throws:
        E
        E extends java.lang.Throwable
      • buildSort

        S buildSort​(java.util.Set<java.lang.String> selectors,
                    LuceneQueryBuilderContext<Q,​S,​E> luceneContext,
                    FunctionEvaluationContext functionContext)
             throws E extends java.lang.Throwable
        Build the matching lucene sort
        Parameters:
        functionContext - FunctionEvaluationContext
        Returns:
        - the sort spec
        Throws:
        E
        E extends java.lang.Throwable