Module org.elasticsearch.compute
Class SpatialAggregationUtils
java.lang.Object
org.elasticsearch.compute.aggregation.spatial.SpatialAggregationUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic Geometrydecode(org.apache.lucene.util.BytesRef wkb) static doubledecodeLatitude(long encoded) static doubledecodeLongitude(long encoded) static 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
-
decodePoint
-
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)
-