Class LuceneComponent2DUtils
java.lang.Object
org.elasticsearch.xpack.esql.expression.function.scalar.spatial.LuceneComponent2DUtils
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
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.
-