com.groupbyinc.flux.index.fielddata.ScriptDocValues$GeoPoints.class Maven / Gradle / Ivy
???? 4 ? =com/groupbyinc/flux/index/fielddata/ScriptDocValues$GeoPoints `Lcom/groupbyinc/flux/index/fielddata/ScriptDocValues; 3com/groupbyinc/flux/index/fielddata/ScriptDocValues ScriptDocValues.java GeoPoints in 9Lcom/groupbyinc/flux/index/fielddata/MultiGeoPointValues; values *[Lcom/groupbyinc/flux/common/geo/GeoPoint; count I <(Lcom/groupbyinc/flux/index/fielddata/MultiGeoPointValues;)V ()V
'com/groupbyinc/flux/common/geo/GeoPoint
this ?Lcom/groupbyinc/flux/index/fielddata/ScriptDocValues$GeoPoints; setNextDocId (I)V java/io/IOException 7com/groupbyinc/flux/index/fielddata/MultiGeoPointValues advanceExact (I)Z ! "
#
docValueCount ()I % &
' resize )
*
, nextValue +()Lcom/groupbyinc/flux/common/geo/GeoPoint; . /
0 lat ()D 2 3
4 lon 6 3
7 (DD)V 9
: point )Lcom/groupbyinc/flux/common/geo/GeoPoint; i docId 7com/groupbyinc/flux/common/apache/lucene/util/ArrayUtil @ grow )([Ljava/lang/Object;I)[Ljava/lang/Object; B C
A D
oldLength newSize getValue 'com/groupbyinc/flux/script/ScriptModule K EXCEPTION_FOR_MISSING_VALUE Z M N L O java/lang/IllegalStateException Q rA document doesn't have a value for a field! Use doc[].size()==0 to check if a document is missing a field! S (Ljava/lang/String;)V U
R V getLat J /
Y getLats ()[D getValues ()Ljava/util/List; ] ^
_ java/util/List a size c & b d [D f get (I)Ljava/lang/Object; h i b j points ;Ljava/util/List; Ljava/util/List; lats getLons lons getLon ,(I)Lcom/groupbyinc/flux/common/geo/GeoPoint; index arcDistance (DD)D 'com/groupbyinc/flux/common/geo/GeoUtils w (DDDD)D u y
x z D arcDistanceWithDefault (DDD)D isEmpty ()Z ?
? u v
? defaultValue
planeDistance ? y
x ? planeDistanceWithDefault ? v
? geohashDistance (Ljava/lang/String;)D +com/groupbyinc/flux/common/geo/GeoHashUtils ? decodeLatitude ? ?
? ? decodeLongitude ? ?
? ? geohash Ljava/lang/String; geohashDistanceWithDefault (Ljava/lang/String;D)D ? ?
? h s
? Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions LocalVariableTypeTable Signature
SourceFile InnerClasses 1
? R *? *? ? *+? ? ? ? ? ? ? ? ? ? L*? ? $? >**? ? (? +=*? -? &*? ? 1N*? ? Y-? 5-? 8? ;S???ا *? +? ? * ( <