Class GeoShapeUtils

java.lang.Object
org.elasticsearch.common.geo.GeoShapeUtils

public class GeoShapeUtils
extends java.lang.Object
Utility class that transforms Elasticsearch geometry objects to the Lucene representation
  • Method Summary

    Modifier and Type Method Description
    static org.apache.lucene.geo.Circle toLuceneCircle​(org.elasticsearch.geometry.Circle circle)  
    static org.apache.lucene.geo.LatLonGeometry[] toLuceneGeometry​(java.lang.String name, SearchExecutionContext context, org.elasticsearch.geometry.Geometry geometry, ShapeRelation relation)  
    static org.apache.lucene.geo.Line toLuceneLine​(org.elasticsearch.geometry.Line line)  
    static org.apache.lucene.geo.Point toLucenePoint​(org.elasticsearch.geometry.Point point)  
    static org.apache.lucene.geo.Polygon toLucenePolygon​(org.elasticsearch.geometry.Polygon polygon)  
    static org.apache.lucene.geo.Polygon toLucenePolygon​(org.elasticsearch.geometry.Rectangle r)  
    static org.apache.lucene.geo.Rectangle toLuceneRectangle​(org.elasticsearch.geometry.Rectangle r)  

    Methods inherited from class java.lang.Object

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

    • toLucenePolygon

      public static org.apache.lucene.geo.Polygon toLucenePolygon​(org.elasticsearch.geometry.Polygon polygon)
    • toLucenePolygon

      public static org.apache.lucene.geo.Polygon toLucenePolygon​(org.elasticsearch.geometry.Rectangle r)
    • toLuceneRectangle

      public static org.apache.lucene.geo.Rectangle toLuceneRectangle​(org.elasticsearch.geometry.Rectangle r)
    • toLucenePoint

      public static org.apache.lucene.geo.Point toLucenePoint​(org.elasticsearch.geometry.Point point)
    • toLuceneLine

      public static org.apache.lucene.geo.Line toLuceneLine​(org.elasticsearch.geometry.Line line)
    • toLuceneCircle

      public static org.apache.lucene.geo.Circle toLuceneCircle​(org.elasticsearch.geometry.Circle circle)
    • toLuceneGeometry

      public static org.apache.lucene.geo.LatLonGeometry[] toLuceneGeometry​(java.lang.String name, SearchExecutionContext context, org.elasticsearch.geometry.Geometry geometry, ShapeRelation relation)