com.groupbyinc.flux.common.geo.GeoPoint.class Maven / Gradle / Ivy
???? 4. 'com/groupbyinc/flux/common/geo/GeoPoint java/lang/Object 6com/groupbyinc/flux/common/xcontent/ToXContentFragment
GeoPoint.java 5com/groupbyinc/flux/common/xcontent/ToXContent$Params .com/groupbyinc/flux/common/xcontent/ToXContent
Params :com/groupbyinc/flux/index/mapper/GeoPointFieldMapper$Names
4com/groupbyinc/flux/index/mapper/GeoPointFieldMapper Names lat D lon ()V
this )Lcom/groupbyinc/flux/common/geo/GeoPoint; (Ljava/lang/String;)V resetFromString =(Ljava/lang/String;)Lcom/groupbyinc/flux/common/geo/GeoPoint;
value Ljava/lang/String; (DD)V # % ,(Lcom/groupbyinc/flux/common/geo/GeoPoint;)V getLat ()D ( )
* getLon , )
- "
/ template reset -(DD)Lcom/groupbyinc/flux/common/geo/GeoPoint; resetLat ,(D)Lcom/groupbyinc/flux/common/geo/GeoPoint; resetLon >(Ljava/lang/String;Z)Lcom/groupbyinc/flux/common/geo/GeoPoint; 7
8 , : java/lang/String < contains (Ljava/lang/CharSequence;)Z > ?
= @ split '(Ljava/lang/String;)[Ljava/lang/String; B C
= D /com/groupbyinc/flux/ElasticsearchParseException F Afailed to parse [{}], expected 2 or 3 coordinates but found: [{}] H java/lang/Integer J valueOf (I)Ljava/lang/Integer; L M
K N ((Ljava/lang/String;[Ljava/lang/Object;)V P
G Q [Ljava/lang/String; S trim ()Ljava/lang/String; U V
= W java/lang/Double Y parseDouble (Ljava/lang/String;)D [ \
Z ] assertZValue (ZD)D _ `
a 2 3
c resetFromGeoHash e
f vals ignoreZValue Z resetFromIndexHash ,(J)Lcom/groupbyinc/flux/common/geo/GeoPoint; +com/groupbyinc/flux/common/geo/GeoHashUtils m decodeLongitude (J)D o p
n q decodeLatitude s p
n t hash J resetFromIndexableField j(Lcom/groupbyinc/flux/common/apache/lucene/index/IndexableField;)Lcom/groupbyinc/flux/common/geo/GeoPoint; =com/groupbyinc/flux/common/apache/lucene/document/LatLonPoint z =com/groupbyinc/flux/common/apache/lucene/index/IndexableField | binaryValue :()Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef; ~ } ? 6com/groupbyinc/flux/common/apache/lucene/util/BytesRef ? bytes [B ? ? ? ? offset I ? ? ? ? length ? ? ? ? java/util/Arrays ? copyOfRange ([BII)[B ? ?
? ? =com/groupbyinc/flux/common/apache/lucene/geo/GeoEncodingUtils ? ([BI)D s ?
? ? o ?
? ? Fcom/groupbyinc/flux/common/apache/lucene/document/LatLonDocValuesField ? numericValue ()Ljava/lang/Number; ? ? } ? java/lang/Long ? longValue ()J ? ?
? ? (I)D s ?
? ? o ?
? ? stringValue ? V } ? parseLong (Ljava/lang/String;)J ? ?
? ? k l
? br 8Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef; encoded field ?Lcom/groupbyinc/flux/common/apache/lucene/index/IndexableField; "java/lang/IllegalArgumentException ? mortonEncode ? ?
n ?
getMessage ? V
? ? =(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V ?
G ? ex $Ljava/lang/IllegalArgumentException; geohash 5com/groupbyinc/flux/common/apache/lucene/util/BitUtil ? flipFlop (J)J ? ?
? ? geohashLong level stringEncode (DD)Ljava/lang/String; ? ?
n ?
getGeohash equals (Ljava/lang/Object;)Z getClass ()Ljava/lang/Class; ? ?
? compare (DD)I ? ?
Z ? o Ljava/lang/Object; geoPoint hashCode ()I doubleToLongBits (D)J ? ?
Z ? (J)I ? ?
? ? result temp toString java/lang/StringBuilder ?
? append (D)Ljava/lang/StringBuilder; ? ?
? ? , ? -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? ? V
? ? parseFromLatLon
latLon point fromGeohash
e l
toXContent ?(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; java/io/IOException 3com/groupbyinc/flux/common/xcontent/XContentBuilder latlon 9(DD)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;
builder 5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; params 7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params; LException parsing coordinates: found Z value [{}] but [{}] parameter is [{}] (D)Ljava/lang/Double; L
Z IGNORE_Z_VALUE 'Lcom/groupbyinc/flux/common/ParseField; java/lang/Boolean! (Z)Ljava/lang/Boolean; L#
"$ zValue Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions
SourceFile InnerClasses 1 ' 3 *? ? ( )
, - ' G *? *+? W? ( ! ) 5 6
7 " ' Y *? *'? $*)? &? ( ) 9 : ; <