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.Weight
createWeight
(org.apache.lucene.search.IndexSearcher searcher, org.apache.lucene.search.ScoreMode scoreMode, float boost) boolean
int
hashCode()
org.apache.lucene.search.Query
rewrite
(org.apache.lucene.index.IndexReader reader) void
visit
(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:
createWeight
in classorg.apache.lucene.search.Query
- Throws:
IOException
-
rewrite
public org.apache.lucene.search.Query rewrite(org.apache.lucene.index.IndexReader reader) throws IOException - Overrides:
rewrite
in classorg.apache.lucene.search.Query
- Throws:
IOException
-
visit
public void visit(org.apache.lucene.search.QueryVisitor visitor) - Overrides:
visit
in classorg.apache.lucene.search.Query
-
getFieldName
-
getComparisonType
-
getComparand
-
toString
- Specified by:
toString
in classorg.apache.lucene.search.Query
-
equals
- Specified by:
equals
in classorg.apache.lucene.search.Query
-
hashCode
public int hashCode()- Specified by:
hashCode
in classorg.apache.lucene.search.Query
-