Class GeoShapeIndexer

java.lang.Object
org.elasticsearch.index.mapper.GeoShapeIndexer
All Implemented Interfaces:
AbstractGeometryFieldMapper.Indexer<Geometry,​Geometry>

public final class GeoShapeIndexer
extends java.lang.Object
implements AbstractGeometryFieldMapper.Indexer<Geometry,​Geometry>
Utility class that converts geometries into Lucene-compatible form
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected static java.util.Comparator<org.elasticsearch.index.mapper.GeoShapeIndexer.Edge> INTERSECTION_ORDER  
  • Constructor Summary

    Constructors 
    Constructor Description
    GeoShapeIndexer​(boolean orientation, java.lang.String name)  
  • Method Summary

    Modifier and Type Method Description
    java.util.List<org.apache.lucene.index.IndexableField> indexShape​(ParseContext context, Geometry shape)  
    protected static double intersection​(double p1x, double p2x, double dateline)
    Calculate the intersection of a line segment and a vertical dateline.
    protected static int intersections​(double dateline, org.elasticsearch.index.mapper.GeoShapeIndexer.Edge[] edges)
    Calculate all intersections of line segments and a vertical line.
    protected static Point position​(Point p1, Point p2, double position)  
    Geometry prepareForIndexing​(Geometry geometry)  
    java.lang.Class<Geometry> processedClass()  
    protected static Point shift​(Point coordinate, double dateline)  
    static org.apache.lucene.geo.Polygon toLucenePolygon​(Polygon polygon)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • INTERSECTION_ORDER

      protected static final java.util.Comparator<org.elasticsearch.index.mapper.GeoShapeIndexer.Edge> INTERSECTION_ORDER
  • Constructor Details

    • GeoShapeIndexer

      public GeoShapeIndexer​(boolean orientation, java.lang.String name)
  • Method Details