|
||||||||||
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
public abstract class SpatialStrategy
Abstraction of the logic used to index and filter Shapes.
Constructor Summary | |
---|---|
protected |
SpatialStrategy(FieldMapper.Names fieldName,
SpatialPrefixTree prefixTree,
double distanceErrorPct)
Creates a new SpatialStrategy that will index and Filter using the given field |
Method Summary | |
---|---|
abstract 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). |
abstract 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). |
abstract 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 |
abstract 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.document.Fieldable |
createField(com.spatial4j.core.shape.Shape shape)
Converts the given Shape into its indexable format. |
org.apache.lucene.search.Filter |
createFilter(com.spatial4j.core.shape.Shape shape,
ShapeRelation relation)
Creates a Filter that will find all indexed Shapes that relate to the given Shape |
abstract 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 |
abstract 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 |
org.apache.lucene.search.Query |
createQuery(com.spatial4j.core.shape.Shape shape,
ShapeRelation relation)
Creates a Query that will find all indexed Shapes that relate to the given Shape |
double |
getDistanceErrorPct()
Returns the distance error percentage for this Strategy |
FieldMapper.Names |
getFieldName()
Returns the name of the field this Strategy applies to |
SpatialPrefixTree |
getPrefixTree()
Returns the SpatialPrefixTree used by this Strategy |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected SpatialStrategy(FieldMapper.Names fieldName, SpatialPrefixTree prefixTree, double distanceErrorPct)
fieldName
- Name of the field that the Strategy will index in and FilterprefixTree
- 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.document.Fieldable createField(com.spatial4j.core.shape.Shape shape)
shape
- Shape to convert ints its indexable format
public org.apache.lucene.search.Filter createFilter(com.spatial4j.core.shape.Shape shape, ShapeRelation relation)
shape
- Shape the indexed shapes will relate torelation
- Nature of the relation
public org.apache.lucene.search.Query createQuery(com.spatial4j.core.shape.Shape shape, ShapeRelation relation)
shape
- Shape the indexed shapes will relate torelation
- Nature of the relation
public abstract org.apache.lucene.search.Filter createIntersectsFilter(com.spatial4j.core.shape.Shape shape)
shape
- Shape to find the intersection Shapes of
public abstract org.apache.lucene.search.Query createIntersectsQuery(com.spatial4j.core.shape.Shape shape)
shape
- Shape to find the intersection Shapes of
public abstract org.apache.lucene.search.Filter createDisjointFilter(com.spatial4j.core.shape.Shape shape)
shape
- Shape to find the disjoint Shapes of
public abstract org.apache.lucene.search.Query createDisjointQuery(com.spatial4j.core.shape.Shape shape)
shape
- Shape to find the disjoint Shapes of
public abstract org.apache.lucene.search.Filter createContainsFilter(com.spatial4j.core.shape.Shape shape)
shape
- Shape to find the contained Shapes of
public abstract org.apache.lucene.search.Query createContainsQuery(com.spatial4j.core.shape.Shape shape)
shape
- Shape to find the contained Shapes of
public FieldMapper.Names getFieldName()
public double getDistanceErrorPct()
public SpatialPrefixTree getPrefixTree()
SpatialPrefixTree
used by this Strategy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |