com.groupbyinc.flux.common.apache.lucene.document.LatLonPointDistanceComparator.class Maven / Gradle / Ivy
???? 4 ? Ocom/groupbyinc/flux/common/apache/lucene/document/LatLonPointDistanceComparator ?Lcom/groupbyinc/flux/common/apache/lucene/search/FieldComparator;Lcom/groupbyinc/flux/common/apache/lucene/search/LeafFieldComparator; ?com/groupbyinc/flux/common/apache/lucene/search/FieldComparator Ccom/groupbyinc/flux/common/apache/lucene/search/LeafFieldComparator "LatLonPointDistanceComparator.java field Ljava/lang/String; latitude D longitude values [D bottom topValue currentDocs GLcom/groupbyinc/flux/common/apache/lucene/index/SortedNumericDocValues; minLon I maxLon minLat maxLat minLon2 setBottomCounter (Ljava/lang/String;DDI)V ()V
? !??? $ & ( * ,
. 0
2 4 this QLcom/groupbyinc/flux/common/apache/lucene/document/LatLonPointDistanceComparator; numHits setScorer ;(Lcom/groupbyinc/flux/common/apache/lucene/search/Scorer;)V scorer 8Lcom/groupbyinc/flux/common/apache/lucene/search/Scorer; compare (II)I java/lang/Double ? (DD)I = A
@ B slot1 slot2 setBottom (I)V H haversin2 (D)D J K
L 6com/groupbyinc/flux/common/apache/lucene/geo/Rectangle N fromPointDistance =(DDD)Lcom/groupbyinc/flux/common/apache/lucene/geo/Rectangle; P Q
O R O T =com/groupbyinc/flux/common/apache/lucene/geo/GeoEncodingUtils V encodeLatitude (D)I X Y
W Z O \ crossesDateline ()Z ^ _
O ` O b encodeLongitude d Y
W e O g box 8Lcom/groupbyinc/flux/common/apache/lucene/geo/Rectangle; slot setTopValue (Ljava/lang/Double;)V doubleValue ()D n o
@ p r value Ljava/lang/Double;
compareBottom (I)I java/io/IOException x z Ecom/groupbyinc/flux/common/apache/lucene/index/SortedNumericDocValues | setDocument ~ G
} count ()I ? ?
} ?? valueAt (I)J ? ?
} ????????? decodeLatitude (I)D ? ?
W ? decodeLongitude ? ?
W ? 8com/groupbyinc/flux/common/apache/lucene/util/SloppyMath ? haversinSortKey (DDDD)D ? ?
? ? java/lang/Math ? max ? >
? ? encoded J latitudeBits
longitudeBits docLatitude docLongitude i doc numValues cmp copy (II)V sortKey ? ?
? getLeafComparator ?(Lcom/groupbyinc/flux/common/apache/lucene/index/LeafReaderContext;)Lcom/groupbyinc/flux/common/apache/lucene/search/LeafFieldComparator; @com/groupbyinc/flux/common/apache/lucene/index/LeafReaderContext ? reader =()Lcom/groupbyinc/flux/common/apache/lucene/index/LeafReader; ? ?
? ? 9com/groupbyinc/flux/common/apache/lucene/index/LeafReader ?
getFieldInfos =()Lcom/groupbyinc/flux/common/apache/lucene/index/FieldInfos; ? ?
? ? 9com/groupbyinc/flux/common/apache/lucene/index/FieldInfos ? fieldInfo N(Ljava/lang/String;)Lcom/groupbyinc/flux/common/apache/lucene/index/FieldInfo; ? ?
? ? Fcom/groupbyinc/flux/common/apache/lucene/document/LatLonDocValuesField ? checkCompatible =(Lcom/groupbyinc/flux/common/apache/lucene/index/FieldInfo;)V ? ?
? ? 8com/groupbyinc/flux/common/apache/lucene/index/FieldInfo ? 8com/groupbyinc/flux/common/apache/lucene/index/DocValues ? getSortedNumeric ?(Lcom/groupbyinc/flux/common/apache/lucene/index/LeafReader;Ljava/lang/String;)Lcom/groupbyinc/flux/common/apache/lucene/index/SortedNumericDocValues; ? ?
? ? context BLcom/groupbyinc/flux/common/apache/lucene/index/LeafReaderContext; ;Lcom/groupbyinc/flux/common/apache/lucene/index/LeafReader; info :Lcom/groupbyinc/flux/common/apache/lucene/index/FieldInfo; (I)Ljava/lang/Double; valueOf (D)Ljava/lang/Double; ? ?
@ ?
compareTop min (DD)D ? ?
? ? minValue
isInfinite (D)Z ? ?
@ ? haversinMeters ? K
? ? partial (I)Ljava/lang/Object; t ?
? (Ljava/lang/Object;)V l m
? Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions Signature
SourceFile
? ? @*? * ? "*#? %* ? '*#? )*#? +*? -*+? /*(? 1*? 3*?? 5? ? 4 @ 6 7 @
@ @
@ 8 ? 2 D 9
: ; <