java.lang.Object
org.elasticsearch.xpack.esql.expression.function.scalar.spatial.LuceneComponent2DUtils

public class LuceneComponent2DUtils extends Object
This utilities class provides access to protected methods in Lucene using alternative APIs. For example, the 'create' method returns the original Component2D array, instead of a Component2D containing a component tree of potentially multiple components. This is particularly useful for algorithms that need to operate on each component individually.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.apache.lucene.geo.Component2D[]
    createLatLonComponents(org.apache.lucene.geo.LatLonGeometry... latLonGeometries)
    This method is based on LatLonGeometry.create, but returns an array of Component2D objects for multi-component geometries.
    static org.apache.lucene.geo.Component2D[]
    createXYComponents(org.apache.lucene.geo.XYGeometry... xyGeometries)
    This method is based on XYGeometry.create, but returns an array of Component2D objects for multi-component geometries.

    Methods inherited from class java.lang.Object

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

    • LuceneComponent2DUtils

      public LuceneComponent2DUtils()
  • Method Details

    • createLatLonComponents

      public static org.apache.lucene.geo.Component2D[] createLatLonComponents(org.apache.lucene.geo.LatLonGeometry... latLonGeometries)
      This method is based on LatLonGeometry.create, but returns an array of Component2D objects for multi-component geometries.
    • createXYComponents

      public static org.apache.lucene.geo.Component2D[] createXYComponents(org.apache.lucene.geo.XYGeometry... xyGeometries)
      This method is based on XYGeometry.create, but returns an array of Component2D objects for multi-component geometries.