Class BypassAutomationRangeQuery

java.lang.Object
org.apache.lucene.search.Query
org.apache.lucene.search.MultiTermQuery
org.apache.lucene.search.AutomatonQuery
org.apache.lucene.search.TermRangeQuery
org.graylog.plugins.views.search.validation.BypassAutomationRangeQuery
All Implemented Interfaces:
org.apache.lucene.util.Accountable

public class BypassAutomationRangeQuery extends org.apache.lucene.search.TermRangeQuery
This TermRangeQuery bypasses Automation and its generated states when it comes to the visitor pattern. It simply passes itself to the TermCollectingQueryVisitor.visitLeaf(Query). The visitor knows how to handle the range for our validation purposes.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.lucene.search.MultiTermQuery

    org.apache.lucene.search.MultiTermQuery.RewriteMethod, org.apache.lucene.search.MultiTermQuery.TopTermsBlendedFreqScoringRewrite, org.apache.lucene.search.MultiTermQuery.TopTermsBoostOnlyBooleanQueryRewrite, org.apache.lucene.search.MultiTermQuery.TopTermsScoringBooleanQueryRewrite
  • Field Summary

    Fields inherited from class org.apache.lucene.search.AutomatonQuery

    automaton, automatonIsBinary, compiled, term

    Fields inherited from class org.apache.lucene.search.MultiTermQuery

    CONSTANT_SCORE_BOOLEAN_REWRITE, CONSTANT_SCORE_REWRITE, field, rewriteMethod, SCORING_BOOLEAN_REWRITE

    Fields inherited from interface org.apache.lucene.util.Accountable

    NULL_ACCOUNTABLE
  • Constructor Summary

    Constructors
    Constructor
    Description
    BypassAutomationRangeQuery(String field, org.apache.lucene.util.BytesRef lowerTerm, org.apache.lucene.util.BytesRef upperTerm, boolean includeLower, boolean includeUpper, org.apache.lucene.search.MultiTermQuery.RewriteMethod rewriteMethod)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    visit(org.apache.lucene.search.QueryVisitor visitor)
     

    Methods inherited from class org.apache.lucene.search.TermRangeQuery

    equals, getLowerTerm, getUpperTerm, hashCode, includesLower, includesUpper, newStringRange, newStringRange, toAutomaton, toString

    Methods inherited from class org.apache.lucene.search.AutomatonQuery

    getAutomaton, getTermsEnum, isAutomatonBinary, ramBytesUsed

    Methods inherited from class org.apache.lucene.search.MultiTermQuery

    getField, getRewriteMethod, getTermsEnum, rewrite, setRewriteMethod

    Methods inherited from class org.apache.lucene.search.Query

    classHash, createWeight, sameClassAs, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.lucene.util.Accountable

    getChildResources
  • Constructor Details

    • BypassAutomationRangeQuery

      public BypassAutomationRangeQuery(String field, org.apache.lucene.util.BytesRef lowerTerm, org.apache.lucene.util.BytesRef upperTerm, boolean includeLower, boolean includeUpper, org.apache.lucene.search.MultiTermQuery.RewriteMethod rewriteMethod)
  • Method Details

    • visit

      public void visit(org.apache.lucene.search.QueryVisitor visitor)
      Overrides:
      visit in class org.apache.lucene.search.AutomatonQuery