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
public abstract class AbstractPrefixTreeQuery extends Query
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 Classes Modifier and Type Class Description classAbstractPrefixTreeQuery.BaseTermsEnumTraverserHolds transient state and docid collecting utility methods as part of traversing aTermsEnumfor aLeafReaderContext.
-
Field Summary
Fields Modifier and Type Field Description protected intdetailLevelprotected StringfieldNameprotected SpatialPrefixTreegridprotected org.locationtech.spatial4j.shape.ShapequeryShape
-
Constructor Summary
Constructors Constructor Description AbstractPrefixTreeQuery(org.locationtech.spatial4j.shape.Shape queryShape, String fieldName, SpatialPrefixTree grid, int detailLevel)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description WeightcreateWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)booleanequals(Object o)protected abstract DocIdSetgetDocIdSet(LeafReaderContext context)inthashCode()voidvisit(QueryVisitor visitor)
-
-
-
Field Detail
-
queryShape
protected final org.locationtech.spatial4j.shape.Shape queryShape
-
fieldName
protected final String fieldName
-
grid
protected final SpatialPrefixTree grid
-
detailLevel
protected final int detailLevel
-
-
Constructor Detail
-
AbstractPrefixTreeQuery
public AbstractPrefixTreeQuery(org.locationtech.spatial4j.shape.Shape queryShape, String fieldName, SpatialPrefixTree grid, int detailLevel)
-
-
Method Detail
-
visit
public void visit(QueryVisitor visitor)
-
createWeight
public Weight createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) throws IOException
- Overrides:
createWeightin classQuery- Throws:
IOException
-
getDocIdSet
protected abstract DocIdSet getDocIdSet(LeafReaderContext context) throws IOException
- Throws:
IOException
-
-