Package org.apache.lucene.document
Class FloatRangeSlowRangeQuery
- java.lang.Object
-
- org.apache.lucene.search.Query
-
- org.apache.lucene.document.BinaryRangeFieldRangeQuery
-
- org.apache.lucene.document.FloatRangeSlowRangeQuery
-
class FloatRangeSlowRangeQuery extends BinaryRangeFieldRangeQuery
-
-
Constructor Summary
Constructors Constructor Description FloatRangeSlowRangeQuery(java.lang.String field, float[] min, float[] max, RangeFieldQuery.QueryType queryType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static byte[]encodeRanges(float[] min, float[] max)booleanequals(java.lang.Object obj)Override and implement query instance equivalence properly in a subclass.inthashCode()Override and implement query hash code properly in a subclass.Queryrewrite(IndexReader reader)Expert: called to re-write queries into primitive queries.java.lang.StringtoString(java.lang.String field)Prints a query to a string, withfieldassumed to be the default field and omitted.voidvisit(QueryVisitor visitor)Recurse through the query tree, visiting any child queries-
Methods inherited from class org.apache.lucene.document.BinaryRangeFieldRangeQuery
createWeight
-
Methods inherited from class org.apache.lucene.search.Query
classHash, sameClassAs, toString
-
-
-
-
Constructor Detail
-
FloatRangeSlowRangeQuery
FloatRangeSlowRangeQuery(java.lang.String field, float[] min, float[] max, RangeFieldQuery.QueryType queryType)
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object obj)
Description copied from class:QueryOverride and implement query instance equivalence properly in a subclass. This is required so thatQueryCacheworks properly. Typically a query will be equal to another only if it's an instance of the same class and its document-filtering properties are identical that other instance. Utility methods are provided for certain repetitive code.- Overrides:
equalsin classBinaryRangeFieldRangeQuery- See Also:
Query.sameClassAs(Object),Query.classHash()
-
hashCode
public int hashCode()
Description copied from class:QueryOverride and implement query hash code properly in a subclass. This is required so thatQueryCacheworks properly.- Overrides:
hashCodein classBinaryRangeFieldRangeQuery- See Also:
Query.equals(Object)
-
visit
public void visit(QueryVisitor visitor)
Description copied from class:QueryRecurse through the query tree, visiting any child queries- Overrides:
visitin classBinaryRangeFieldRangeQuery- Parameters:
visitor- a QueryVisitor to be called by each query in the tree
-
toString
public java.lang.String toString(java.lang.String field)
Description copied from class:QueryPrints a query to a string, withfieldassumed to be the default field and omitted.
-
rewrite
public Query rewrite(IndexReader reader) throws java.io.IOException
Description copied from class:QueryExpert: called to re-write queries into primitive queries. For example, a PrefixQuery will be rewritten into a BooleanQuery that consists of TermQuerys.- Overrides:
rewritein classBinaryRangeFieldRangeQuery- Throws:
java.io.IOException
-
encodeRanges
private static byte[] encodeRanges(float[] min, float[] max)
-
-