com.groupbyinc.flux.common.geo.GeoUtils.class Maven / Gradle / Ivy
???? 4? 'com/groupbyinc/flux/common/geo/GeoUtils java/lang/Object
GeoUtils.java )com/groupbyinc/flux/common/geo/GeoUtils$3 )com/groupbyinc/flux/common/geo/GeoUtils$2 )com/groupbyinc/flux/common/geo/GeoUtils$1
8com/groupbyinc/flux/common/xcontent/XContentParser$Token 2com/groupbyinc/flux/common/xcontent/XContentParser Token MAX_LAT D@V? MIN_LAT?V? MAX_LON@f? MIN_LON?f? LATITUDE Ljava/lang/String; lat LONGITUDE lon # GEOHASH geohash & EARTH_SEMI_MAJOR_AXISAXT?@ EARTH_SEMI_MINOR_AXISAX??? EARTH_MEAN_RADIUSAXM?1^? EARTH_AXIS_RATIO??䈥{!
EARTH_EQUATORA??E|? EARTH_POLAR_DISTANCEAs?e?? TOLERANCE>?????? $assertionsDisabled Z isValidLatitude (D)Z java/lang/Double A isNaN C @
B D
isInfinite F @
B G latitude isValidLongitude longitude geoHashCellWidth (I)D = > N java/lang/AssertionError P ()V R S
Q T level I quadTreeCellWidth geoHashCellHeight quadTreeCellHeight geoHashCellSize L M
\ Y M
^ java/lang/Math ` sqrt (D)D b c
a d w h quadTreeCellSizeC}~?Ƀ? quadTreeLevelsForPrecision (D)I???")^??@???@?? ceil q c
a r round (D)J t u
a v java/lang/Long x numberOfLeadingZeros (J)I z {
y | ratio width part J meters (Ljava/lang/String;)I ,com/groupbyinc/flux/common/unit/DistanceUnit ? METERS .Lcom/groupbyinc/flux/common/unit/DistanceUnit; ? ? ? ? DEFAULT ? ? ? ? parse C(Ljava/lang/String;Lcom/groupbyinc/flux/common/unit/DistanceUnit;)D ? ?
? ? k l
? distance geoHashLevelsForPrecision Ncom/groupbyinc/flux/common/apache/lucene/spatial/prefix/tree/GeohashPrefixTree ? getMaxLevelsPossible ()I ? ?
? ? log ? c
a ?@ bits full left even odd ? l
? normalizeLon@v? centeredModulus (DD)D ? ?
? normalizeLat normalizePoint ,(Lcom/groupbyinc/flux/common/geo/GeoPoint;)V .(Lcom/groupbyinc/flux/common/geo/GeoPoint;ZZ)V ? ?
? point )Lcom/groupbyinc/flux/common/geo/GeoPoint; 'com/groupbyinc/flux/common/geo/GeoPoint ? ()D # ?
? ? ?
? ? ([DZZ)V ? ?
? reset -(DD)Lcom/groupbyinc/flux/common/geo/GeoPoint; ? ?
? ? normLat normLon pt [D ([D)V lonLat ? c
? ? shift dividend divisor rtn
parseGeoPoint _(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/common/geo/GeoPoint; java/io/IOException ? /com/groupbyinc/flux/ElasticsearchParseException ?
? T ?(Lcom/groupbyinc/flux/common/xcontent/XContentParser;Lcom/groupbyinc/flux/common/geo/GeoPoint;)Lcom/groupbyinc/flux/common/geo/GeoPoint; ? ?
? parser 4Lcom/groupbyinc/flux/common/xcontent/XContentParser; java/lang/NumberFormatException ?? currentToken <()Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token; ? ? ? START_OBJECT :Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token; ? ?
? java/lang/String ? nextToken ? ? ?
END_OBJECT ? ?
?
FIELD_NAME ? ?
? currentName ()Ljava/lang/String; ? ? ? equals (Ljava/lang/Object;)Z ? ?
? ? A$SwitchMap$org$elasticsearch$common$xcontent$XContentParser$Token [I ? ? ? ordinal ?
doubleValue (Z)D latitude must be a number ((Ljava/lang/String;[Ljava/lang/Object;)V R
?
longitude must be a number VALUE_STRING ?
text ? geohash must be a string 'field must be either [{}], [{}] or [{}] token [{}] not allowed 'field must be either lat/lon or geohash resetFromGeoHash =(Ljava/lang/String;)Lcom/groupbyinc/flux/common/geo/GeoPoint;
? )[{}] and [{}] must be valid double values =(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V R"
?# field [{}] missing% START_ARRAY' ?
( END_ARRAY* ?
+ VALUE_NUMBER- ?
. ? 0 only two values allowed2 numeric value expected4 f(Ljava/lang/String;Lcom/groupbyinc/flux/common/geo/GeoPoint;)Lcom/groupbyinc/flux/common/geo/GeoPoint; ?6
7 geo_point expected9 e !Ljava/lang/NumberFormatException; field element data numberFormatException indexOf (I)IAB
?C substring (II)Ljava/lang/String;EF
?G trimI ?
?J parseDouble (Ljava/lang/String;)DLM
BN (I)Ljava/lang/String;EP
?Q comma maxRadialDistanceMeters absU c
aV 8com/groupbyinc/flux/common/apache/lucene/util/SloppyMathX haversinMeters (DDDD)DZ[
Y\ centerLat centerLon arcDistance lat1 lon1 lat2 lon2
planeDistance???F?R?9 cosh c
ai x y rectangleContainsPoint =(Lcom/groupbyinc/flux/common/apache/lucene/geo/Rectangle;DD)Z 6com/groupbyinc/flux/common/apache/lucene/geo/Rectangleo minLatq pr maxLatt pu crossesDateline ()Zwx
py minLon{ p| maxLon~ p r 8Lcom/groupbyinc/flux/common/apache/lucene/geo/Rectangle; distanceValues ?(Lcom/groupbyinc/flux/common/geo/GeoDistance;Lcom/groupbyinc/flux/common/unit/DistanceUnit;Lcom/groupbyinc/flux/index/fielddata/MultiGeoPointValues;[Lcom/groupbyinc/flux/common/geo/GeoPoint;)Lcom/groupbyinc/flux/index/fielddata/SortedNumericDoubleValues; -com/groupbyinc/flux/index/fielddata/FieldData? unwrapSingleton o(Lcom/groupbyinc/flux/index/fielddata/MultiGeoPointValues;)Lcom/groupbyinc/flux/index/fielddata/GeoPointValues;??
?? ?(Lcom/groupbyinc/flux/index/fielddata/GeoPointValues;[Lcom/groupbyinc/flux/common/geo/GeoPoint;Lcom/groupbyinc/flux/common/geo/GeoDistance;Lcom/groupbyinc/flux/common/unit/DistanceUnit;)V R?
? singleton z(Lcom/groupbyinc/flux/index/fielddata/NumericDoubleValues;)Lcom/groupbyinc/flux/index/fielddata/SortedNumericDoubleValues;??
?? 2com/groupbyinc/flux/index/fielddata/GeoPointValues? ?(Lcom/groupbyinc/flux/index/fielddata/MultiGeoPointValues;[Lcom/groupbyinc/flux/common/geo/GeoPoint;Lcom/groupbyinc/flux/common/geo/GeoDistance;Lcom/groupbyinc/flux/common/unit/DistanceUnit;)V R?
? ,Lcom/groupbyinc/flux/common/geo/GeoDistance; unit geoPointValues 9Lcom/groupbyinc/flux/index/fielddata/MultiGeoPointValues;
fromPoints *[Lcom/groupbyinc/flux/common/geo/GeoPoint; singleValues 4Lcom/groupbyinc/flux/index/fielddata/GeoPointValues;
T this )Lcom/groupbyinc/flux/common/geo/GeoUtils; java/lang/Class? desiredAssertionStatus?x
??
ConstantValue Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions
SourceFile InnerClasses ! ? ? ? ? ? ! " ? $ % ? ' ( ? ) + ? , . ? / 1 ? 2 4 ? 5 7 ? 8 : ? ; = > ? @ ? ^ "&? E? &? H? & ?? & ?? ?? ? " I ? M N P? J @ ? ^ "&? E? &? H? & ?? & ?? ?? ? " K ? U V X? L M ? ^ '? O? ? ? QY? U? 5
`lhlh`y?o? ? ' V W ?
a d? X M ? R ? O? ? ? QY? U? 5
y?o? ? V W ?
m n? Y M ? ^ '? O? ? ? QY? U? 8
`lhlh`y?o? ? ' V W ?
w z? Z M ? R ? O? ? ? QY? U? 8
y?o? ? V W ?
? ?? [ M ? z '? O? ? ? QY? U?? ]H? _J''k))kc? e? ? ' V W f g ? ? ? ? ?? h M ? U ? O? ? ? QY? U? i? e
y?o? ? V W ?
? ?? k l ? ? [? O? &?? ? QY? U?&?? 2? mI&&k oo? e9 5o? s? w7@? }dd6
y?? ? `? ? 4 ! : ~ - . ; ? ? G V W [ ? ? " ? ? ? ? ! ? - ? ; ? G ?? ? 8 C k ? ? 8 ? ?*? ?? ?? ?? ? ? ? ? ? l ? ?
?? O? &?? ? QY? U?&?? ? ?? mI&&k oo? e9 5o? s9?? ?? ? ?? ?o? s? w?6l6 hd6
? ? `6
? ? `6`? ? \ " i ~ . ] 9 R ? W 4 ? W ] . ? W f % ? W
u ? W ? ? W ? ? ? : ? ? ? ? " ? . ? 9 ? @ ? B ? W ? ] ? f ? u ? ? ?? J ? #? . ? ? ? ? ? ? 8 ? ?*? ?? ?? ?? ? ? ? ? ? c ? 2 & ?? ?? ? # ? ? ? c ? q )& ?? ?G& ?? &gG? & ?? &gG&? ? ) ? ? ? ? ? ! ? ' ??
? ? ? 5 *? ?? ? ? ? ?
? ? ? x $?Y*? ?RY*? ?RN-? ?*-1-1? ?W? ? * $ ? ? $ ? > $ ? > ? ? ? #! ? ? ? 5 *? ?? ? ? ? ?
$ % ? ? ? ? ղ O? *? *?? ? QY? U?? *1 ??
*1 ?? ? =? *1 ??
*1 ?? ? <? o**1 ?? ?R>*1 ?? * *1gR? *1 ?? * *1gR? >? -? *\1 cR? *\1*1? ??? ? cR? **1 ?? ?R? ? * f ^ ? > ? ? ? ? ? > ? ? > ? J ( * 6+ T- X. d/ f0 p1 }2 ?3 ?6 ?8 ?9 ?: ?? ?C ?D ?F? <