|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.common.lucene.spatial.SpatialStrategy org.elasticsearch.common.lucene.spatial.prefix.TermQueryPrefixTreeStrategy
public class TermQueryPrefixTreeStrategy
Implementation of SpatialStrategy
that uses TermQuerys / TermFilters
to query and filter for Shapes related to other Shapes.
Constructor Summary | |
---|---|
TermQueryPrefixTreeStrategy(FieldMapper.Names fieldName,
SpatialPrefixTree prefixTree,
double distanceErrorPct)
Creates a new TermQueryPrefixTreeStrategy |
Method Summary | |
---|---|
org.apache.lucene.search.Filter |
createContainsFilter(com.spatial4j.core.shape.Shape shape)
Creates a Filter that will find all indexed Shapes that are properly contained within the given Shape (the indexed Shapes will not have any area outside of the given Shape). |
org.apache.lucene.search.Query |
createContainsQuery(com.spatial4j.core.shape.Shape shape)
Creates a Query that will find all indexed Shapes that are properly contained within the given Shape (the indexed Shapes will not have any area outside of the given Shape). |
org.apache.lucene.search.Filter |
createDisjointFilter(com.spatial4j.core.shape.Shape shape)
Creates a Filter that will find all indexed Shapes that are disjoint to the given Shape |
org.apache.lucene.search.Query |
createDisjointQuery(com.spatial4j.core.shape.Shape shape)
Creates a Query that will find all indexed Shapes that are disjoint to the given Shape |
org.apache.lucene.search.Filter |
createIntersectsFilter(com.spatial4j.core.shape.Shape shape)
Creates a Filter that will find all indexed Shapes that intersect with the given Shape |
org.apache.lucene.search.Query |
createIntersectsQuery(com.spatial4j.core.shape.Shape shape)
Creates a Query that will find all indexed Shapes that intersect with the given Shape |
Methods inherited from class org.elasticsearch.common.lucene.spatial.SpatialStrategy |
---|
createField, createFilter, createQuery, getDistanceErrorPct, getFieldName, getPrefixTree |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TermQueryPrefixTreeStrategy(FieldMapper.Names fieldName, SpatialPrefixTree prefixTree, double distanceErrorPct)
fieldName
- Name of the field the Strategy applies toprefixTree
- SpatialPrefixTree that will be used to represent ShapesdistanceErrorPct
- Distance Error Percentage used to guide the
SpatialPrefixTree on how precise it should beMethod Detail |
---|
public org.apache.lucene.search.Filter createIntersectsFilter(com.spatial4j.core.shape.Shape shape)
createIntersectsFilter
in class SpatialStrategy
shape
- Shape to find the intersection Shapes of
public org.apache.lucene.search.Query createIntersectsQuery(com.spatial4j.core.shape.Shape shape)
createIntersectsQuery
in class SpatialStrategy
shape
- Shape to find the intersection Shapes of
public org.apache.lucene.search.Filter createDisjointFilter(com.spatial4j.core.shape.Shape shape)
createDisjointFilter
in class SpatialStrategy
shape
- Shape to find the disjoint Shapes of
public org.apache.lucene.search.Query createDisjointQuery(com.spatial4j.core.shape.Shape shape)
createDisjointQuery
in class SpatialStrategy
shape
- Shape to find the disjoint Shapes of
public org.apache.lucene.search.Filter createContainsFilter(com.spatial4j.core.shape.Shape shape)
createContainsFilter
in class SpatialStrategy
shape
- Shape to find the contained Shapes of
public org.apache.lucene.search.Query createContainsQuery(com.spatial4j.core.shape.Shape shape)
createContainsQuery
in class SpatialStrategy
shape
- Shape to find the contained Shapes of
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |