Module org.elasticsearch.compute
Class SpatialAggregationUtils
java.lang.Object
org.elasticsearch.compute.aggregation.spatial.SpatialAggregationUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.elasticsearch.geometry.Geometrydecode(org.apache.lucene.util.BytesRef wkb) static doubledecodeLatitude(long encoded) static doubledecodeLongitude(long encoded) static org.elasticsearch.geometry.PointdecodePoint(org.apache.lucene.util.BytesRef wkb) static doubledecodeX(long encoded) static doubledecodeY(long encoded) static intencodeLongitude(double d) static intextractFirst(long encoded) static intextractSecond(long encoded) static intmaxNeg(int a, int b) static intminPos(int a, int b)
-
Method Details
-
decode
public static org.elasticsearch.geometry.Geometry decode(org.apache.lucene.util.BytesRef wkb) -
decodePoint
public static org.elasticsearch.geometry.Point decodePoint(org.apache.lucene.util.BytesRef wkb) -
decodeX
public static double decodeX(long encoded) -
extractFirst
public static int extractFirst(long encoded) -
decodeY
public static double decodeY(long encoded) -
extractSecond
public static int extractSecond(long encoded) -
decodeLongitude
public static double decodeLongitude(long encoded) -
decodeLatitude
public static double decodeLatitude(long encoded) -
encodeLongitude
public static int encodeLongitude(double d) -
maxNeg
public static int maxNeg(int a, int b) -
minPos
public static int minPos(int a, int b)
-