Class GenericPointParser<T>

java.lang.Object
org.elasticsearch.common.geo.GenericPointParser<T>
Type Parameters:
T - type of point to produce (either geographic or cartesian)

public abstract class GenericPointParser<T> extends Object
This class can parse points from XContentParser and supports several formats:
  • Constructor Details

    • GenericPointParser

      public GenericPointParser(String mapType, String xField, String yField, boolean supportGeohash)
      Construct the parser with some configuration settings
      Parameters:
      mapType - whether the parser is for 'geo_point' or 'point'
      xField - the name of the first coordinate when constructing points (either 'x' or 'lat')
      yField - the name of the second coordinate when constructing points (either 'y' or 'lon')
      supportGeohash - whether to support parsing geohash values (only geo_point supports this currently)
  • Method Details