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
Nested ClassesModifier and TypeClassDescriptionclassHolds transient state and docid collecting utility methods as part of traversing aTermsEnumfor aLeafReaderContext. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final intprotected final Stringprotected final SpatialPrefixTreeprotected final org.locationtech.spatial4j.shape.Shape -
Constructor Summary
ConstructorsConstructorDescriptionAbstractPrefixTreeQuery(org.locationtech.spatial4j.shape.Shape queryShape, String fieldName, SpatialPrefixTree grid, int detailLevel) -
Method Summary
Modifier and TypeMethodDescriptioncreateWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) booleanprotected abstract DocIdSetgetDocIdSet(LeafReaderContext context) inthashCode()voidvisit(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:
createWeightin classQuery- Throws:
IOException
-
getDocIdSet
- Throws:
IOException
-