
com.groupbyinc.flux.index.mapper.geo.GeoPointFieldMapperLegacy$Encoding.class Maven / Gradle / Ivy
???? 3 ? Gcom/groupbyinc/flux/index/mapper/geo/GeoPointFieldMapperLegacy$Encoding java/lang/Object GeoPointFieldMapperLegacy.java >com/groupbyinc/flux/index/mapper/geo/GeoPointFieldMapperLegacy Encoding 5com/groupbyinc/flux/common/unit/DistanceUnit$Distance ,com/groupbyinc/flux/common/unit/DistanceUnit Distance
MAX_NUM_BYTES I INSTANCES J[Lcom/groupbyinc/flux/index/mapper/geo/GeoPointFieldMapperLegacy$Encoding; precision 7Lcom/groupbyinc/flux/common/unit/DistanceUnit$Distance; numBytes numBytesPerCoordinate factor D $assertionsDisabled Z of L(I)Lcom/groupbyinc/flux/index/mapper/geo/GeoPointFieldMapperLegacy$Encoding; java/lang/IllegalStateException java/lang/StringBuilder ! ()V # $
" % No encoding for ' append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ) *
" + (I)Ljava/lang/StringBuilder; ) -
" . bytes per value 0 toString ()Ljava/lang/String; 2 3
" 4 (Ljava/lang/String;)V # 6
7 numBytesPerValue instance ILcom/groupbyinc/flux/index/mapper/geo/GeoPointFieldMapperLegacy$Encoding; ?(Lcom/groupbyinc/flux/common/unit/DistanceUnit$Distance;)Lcom/groupbyinc/flux/index/mapper/geo/GeoPointFieldMapperLegacy$Encoding; 9()Lcom/groupbyinc/flux/common/unit/DistanceUnit$Distance; >
? compareTo :(Lcom/groupbyinc/flux/common/unit/DistanceUnit$Distance;)I A B
C encoding (I)V
% H java/lang/AssertionError J
K % M O@ java/lang/Math S pow (DD)D U V
T W Y@f? ] (D)Ljava/lang/StringBuilder; ) _
" ` (Ljava/lang/Object;)V # b
K c DEFAULT .Lcom/groupbyinc/flux/common/unit/DistanceUnit; e f g 2(DLcom/groupbyinc/flux/common/unit/DistanceUnit;)V # i
j l *com/groupbyinc/flux/common/geo/GeoDistance n PLANE ,Lcom/groupbyinc/flux/common/geo/GeoDistance; p q o r calculate 5(DDDDLcom/groupbyinc/flux/common/unit/DistanceUnit;)D t u
o v this ()I numBitsPerCoordinate encodeCoordinate (D)J round } |
T ~ lat decodeCoordinate (J)D bits J
encodeBits (J[BI)V i out [B offset
decodeBits ([BI)J ? in r encode (DD[BI)V { |
? ? ?
? lon decode W([BILcom/groupbyinc/flux/common/geo/GeoPoint;)Lcom/groupbyinc/flux/common/geo/GeoPoint; ? ?
? V(JJLcom/groupbyinc/flux/common/geo/GeoPoint;)Lcom/groupbyinc/flux/common/geo/GeoPoint; ? ?
? )Lcom/groupbyinc/flux/common/geo/GeoPoint; latBits lonBits ? ?
? 'com/groupbyinc/flux/common/geo/GeoPoint ? reset -(DD)Lcom/groupbyinc/flux/common/geo/GeoPoint; ? ?
? ? java/lang/Class ? desiredAssertionStatus ()Z ? ?
? ? # F
?
ConstantValue Code LocalVariableTable LineNumberTable
StackMapTable
SourceFile InnerClasses 1 ? ? z ,? 2L+? #? Y? "Y? &(? ,? /1? ,? 5? 8?+? ? , 9 &