
com.groupbyinc.flux.common.apache.lucene.spatial.SpatialStrategy.class Maven / Gradle / Ivy
???? 3 ? @com/groupbyinc/flux/common/apache/lucene/spatial/SpatialStrategy java/lang/Object SpatialStrategy.java ctx BLcom/groupbyinc/flux/common/spatial4j/core/context/SpatialContext; fieldName Ljava/lang/String; W(Lcom/groupbyinc/flux/common/spatial4j/core/context/SpatialContext;Ljava/lang/String;)V ()V
"java/lang/IllegalArgumentException ctx is required (Ljava/lang/String;)V
@com/groupbyinc/flux/common/spatial4j/core/context/SpatialContext java/lang/String length ()I
fieldName is required " this BLcom/groupbyinc/flux/common/apache/lucene/spatial/SpatialStrategy; getSpatialContext D()Lcom/groupbyinc/flux/common/spatial4j/core/context/SpatialContext; getFieldName ()Ljava/lang/String; createIndexableFields s(Lcom/groupbyinc/flux/common/spatial4j/core/shape/Shape;)[Lcom/groupbyinc/flux/common/apache/lucene/document/Field; makeDistanceValueSource ?(Lcom/groupbyinc/flux/common/spatial4j/core/shape/Point;)Lcom/groupbyinc/flux/common/apache/lucene/queries/function/ValueSource; ?(Lcom/groupbyinc/flux/common/spatial4j/core/shape/Point;D)Lcom/groupbyinc/flux/common/apache/lucene/queries/function/ValueSource; , .
/
queryPoint 7Lcom/groupbyinc/flux/common/spatial4j/core/shape/Point; makeQuery }(Lcom/groupbyinc/flux/common/apache/lucene/spatial/query/SpatialArgs;)Lcom/groupbyinc/flux/common/apache/lucene/search/Query; makeRecipDistanceValueSource ?(Lcom/groupbyinc/flux/common/spatial4j/core/shape/Shape;)Lcom/groupbyinc/flux/common/apache/lucene/queries/function/ValueSource; 5com/groupbyinc/flux/common/spatial4j/core/shape/Shape 7 getBoundingBox =()Lcom/groupbyinc/flux/common/spatial4j/core/shape/Rectangle; 9 : 8 ; getDistCalc I()Lcom/groupbyinc/flux/common/spatial4j/core/distance/DistanceCalculator; = >
? 9com/groupbyinc/flux/common/spatial4j/core/shape/Rectangle A getMinX ()D C D B E getMinY G D B H makePoint ;(DD)Lcom/groupbyinc/flux/common/spatial4j/core/shape/Point; J K
L getMaxX N D B O getMaxY Q D B R Ecom/groupbyinc/flux/common/spatial4j/core/distance/DistanceCalculator T distance <(Lcom/groupbyinc/flux/common/spatial4j/core/shape/Point;DD)D V W U X?? =??? ]com/groupbyinc/flux/common/apache/lucene/queries/function/valuesource/ReciprocalFloatFunction ] getCenter 9()Lcom/groupbyinc/flux/common/spatial4j/core/shape/Point; _ ` 8 a M(Lcom/groupbyinc/flux/common/apache/lucene/queries/function/ValueSource;FFF)V
c
^ d
queryShape 7Lcom/groupbyinc/flux/common/spatial4j/core/shape/Shape; bbox ;Lcom/groupbyinc/flux/common/spatial4j/core/shape/Rectangle; diagonalDist D
distToEdge c F toString java/lang/StringBuilder p
q
getClass ()Ljava/lang/Class; s t
u java/lang/Class w
getSimpleName y )
x z append -(Ljava/lang/String;)Ljava/lang/StringBuilder; | }
q ~ field: ? ctx= ? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; | ?
q ? o )
q ? Code LocalVariableTable LineNumberTable
StackMapTable
SourceFile!
? ? 2*? +?
? Y? ?*+? ,?
,? ?
? Y!? ?*,? #? ? 2 $ % 2 2 ? " @ A B C D " E , F 1 G ? ? &