Package org.apache.lucene.spatial.prefix
Class AbstractPrefixTreeQuery
java.lang.Object
org.apache.lucene.search.Query
org.apache.lucene.spatial.prefix.AbstractPrefixTreeQuery
- Direct Known Subclasses:
AbstractVisitingPrefixTreeQuery
,ContainsPrefixTreeQuery
Base class for Lucene Queries on SpatialPrefixTree fields.
- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
Holds transient state and docid collecting utility methods as part of traversing aTermsEnum
for aLeafReaderContext
. -
Field Summary
Modifier and TypeFieldDescriptionprotected final int
protected final String
protected final SpatialPrefixTree
protected final org.locationtech.spatial4j.shape.Shape
-
Constructor Summary
ConstructorDescriptionAbstractPrefixTreeQuery
(org.locationtech.spatial4j.shape.Shape queryShape, String fieldName, SpatialPrefixTree grid, int detailLevel) -
Method Summary
Modifier and TypeMethodDescriptioncreateWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) boolean
protected abstract DocIdSet
getDocIdSet
(LeafReaderContext context) int
hashCode()
void
visit
(QueryVisitor visitor)
-
Field Details
-
queryShape
protected final org.locationtech.spatial4j.shape.Shape queryShape -
fieldName
-
grid
-
detailLevel
protected final int detailLevel
-
-
Constructor Details
-
AbstractPrefixTreeQuery
public AbstractPrefixTreeQuery(org.locationtech.spatial4j.shape.Shape queryShape, String fieldName, SpatialPrefixTree grid, int detailLevel)
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
visit
-
createWeight
public Weight createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) throws IOException - Overrides:
createWeight
in classQuery
- Throws:
IOException
-
getDocIdSet
- Throws:
IOException
-