public abstract class AbstractPrefixTreeQuery extends Query
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractPrefixTreeQuery.BaseTermsEnumTraverser
Holds transient state and docid collecting utility methods as part of
traversing a
TermsEnum for a LeafReaderContext. |
| Modifier and Type | Field and Description |
|---|---|
protected int |
detailLevel |
protected String |
fieldName |
protected SpatialPrefixTree |
grid |
protected com.spatial4j.core.shape.Shape |
queryShape |
| Constructor and Description |
|---|
AbstractPrefixTreeQuery(com.spatial4j.core.shape.Shape queryShape,
String fieldName,
SpatialPrefixTree grid,
int detailLevel) |
| Modifier and Type | Method and Description |
|---|---|
Weight |
createWeight(IndexSearcher searcher,
boolean needsScores)
Expert: Constructs an appropriate Weight implementation for this query.
|
boolean |
equals(Object o)
Override and implement query instance equivalence properly in a subclass.
|
protected abstract DocIdSet |
getDocIdSet(LeafReaderContext context) |
int |
hashCode()
Override and implement query hash code properly in a subclass.
|
protected final com.spatial4j.core.shape.Shape queryShape
protected final String fieldName
protected final SpatialPrefixTree grid
protected final int detailLevel
public AbstractPrefixTreeQuery(com.spatial4j.core.shape.Shape queryShape,
String fieldName,
SpatialPrefixTree grid,
int detailLevel)
public boolean equals(Object o)
QueryQueryCache works 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.equals in class QueryQuery.sameClassAs(Object),
Query.classHash()public int hashCode()
QueryQueryCache works properly.hashCode in class QueryQuery.equals(Object)public Weight createWeight(IndexSearcher searcher, boolean needsScores) throws IOException
QueryOnly implemented by primitive queries, which re-write to themselves.
createWeight in class QueryneedsScores - True if document scores (Scorer.score()) or match
frequencies (Scorer.freq()) are needed.IOExceptionprotected abstract DocIdSet getDocIdSet(LeafReaderContext context) throws IOException
IOExceptionCopyright © 2000–2017 The Apache Software Foundation. All rights reserved.