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, termFields inherited from class org.apache.lucene.search.MultiTermQuery
CONSTANT_SCORE_BOOLEAN_REWRITE, CONSTANT_SCORE_REWRITE, field, rewriteMethod, SCORING_BOOLEAN_REWRITEFields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE -
Constructor Summary
ConstructorsConstructorDescriptionBypassAutomationRangeQuery(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
Methods inherited from class org.apache.lucene.search.TermRangeQuery
equals, getLowerTerm, getUpperTerm, hashCode, includesLower, includesUpper, newStringRange, newStringRange, toAutomaton, toStringMethods inherited from class org.apache.lucene.search.AutomatonQuery
getAutomaton, getTermsEnum, isAutomatonBinary, ramBytesUsedMethods inherited from class org.apache.lucene.search.MultiTermQuery
getField, getRewriteMethod, getTermsEnum, rewrite, setRewriteMethodMethods inherited from class org.apache.lucene.search.Query
classHash, createWeight, sameClassAs, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
visitin classorg.apache.lucene.search.AutomatonQuery
-