Class LuceneComparisonQuery
java.lang.Object
org.apache.lucene.search.Query
com.apple.foundationdb.record.lucene.LuceneComparisonQuery
public class LuceneComparisonQuery
extends org.apache.lucene.search.Query
Wrapper of a Lucene
Query that contains accessible
field name, comparison type, and comparand.-
Constructor Summary
ConstructorsConstructorDescriptionLuceneComparisonQuery(org.apache.lucene.search.Query query, String fieldName, Comparisons.Type comparisonType, Object comparand) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.search.WeightcreateWeight(org.apache.lucene.search.IndexSearcher searcher, org.apache.lucene.search.ScoreMode scoreMode, float boost) booleaninthashCode()org.apache.lucene.search.Queryrewrite(org.apache.lucene.index.IndexReader reader) voidvisit(org.apache.lucene.search.QueryVisitor visitor) Methods inherited from class org.apache.lucene.search.Query
classHash, sameClassAs, toString
-
Constructor Details
-
LuceneComparisonQuery
public LuceneComparisonQuery(@Nonnull org.apache.lucene.search.Query query, @Nonnull String fieldName, @Nonnull Comparisons.Type comparisonType, @Nullable Object comparand)
-
-
Method Details
-
createWeight
public org.apache.lucene.search.Weight createWeight(org.apache.lucene.search.IndexSearcher searcher, org.apache.lucene.search.ScoreMode scoreMode, float boost) throws IOException - Overrides:
createWeightin classorg.apache.lucene.search.Query- Throws:
IOException
-
rewrite
public org.apache.lucene.search.Query rewrite(org.apache.lucene.index.IndexReader reader) throws IOException - Overrides:
rewritein classorg.apache.lucene.search.Query- Throws:
IOException
-
visit
public void visit(org.apache.lucene.search.QueryVisitor visitor) - Overrides:
visitin classorg.apache.lucene.search.Query
-
getFieldName
-
getComparisonType
-
getComparand
-
toString
- Specified by:
toStringin classorg.apache.lucene.search.Query
-
equals
- Specified by:
equalsin classorg.apache.lucene.search.Query
-
hashCode
public int hashCode()- Specified by:
hashCodein classorg.apache.lucene.search.Query
-