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) |
protected abstract DocIdSet |
getDocIdSet(LeafReaderContext context) |
int |
hashCode() |
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 Weight createWeight(IndexSearcher searcher, boolean needsScores) throws IOException
Query
Only implemented by primitive queries, which re-write to themselves.
createWeight
in class Query
needsScores
- True if document scores (Scorer.score()
) or match
frequencies (Scorer.freq()
) are needed.IOException
protected abstract DocIdSet getDocIdSet(LeafReaderContext context) throws IOException
IOException
Copyright © 2000–2017 The Apache Software Foundation. All rights reserved.