com.groupbyinc.flux.common.apache.lucene.spatial.SpatialStrategy.class Maven / Gradle / Ivy
???? 4 ? @com/groupbyinc/flux/common/apache/lucene/spatial/SpatialStrategy java/lang/Object SpatialStrategy.java ctx JLcom/groupbyinc/flux/common/locationtech/spatial4j/context/SpatialContext; fieldName Ljava/lang/String; _(Lcom/groupbyinc/flux/common/locationtech/spatial4j/context/SpatialContext;Ljava/lang/String;)V ()V
"java/lang/IllegalArgumentException ctx is required (Ljava/lang/String;)V
Hcom/groupbyinc/flux/common/locationtech/spatial4j/context/SpatialContext java/lang/String length ()I
fieldName is required " this BLcom/groupbyinc/flux/common/apache/lucene/spatial/SpatialStrategy; getSpatialContext L()Lcom/groupbyinc/flux/common/locationtech/spatial4j/context/SpatialContext; getFieldName ()Ljava/lang/String; createIndexableFields {(Lcom/groupbyinc/flux/common/locationtech/spatial4j/shape/Shape;)[Lcom/groupbyinc/flux/common/apache/lucene/document/Field; makeDistanceValueSource ?(Lcom/groupbyinc/flux/common/locationtech/spatial4j/shape/Point;)Lcom/groupbyinc/flux/common/apache/lucene/queries/function/ValueSource; ?(Lcom/groupbyinc/flux/common/locationtech/spatial4j/shape/Point;D)Lcom/groupbyinc/flux/common/apache/lucene/queries/function/ValueSource; , .
/
queryPoint ?Lcom/groupbyinc/flux/common/locationtech/spatial4j/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/locationtech/spatial4j/shape/Shape;)Lcom/groupbyinc/flux/common/apache/lucene/queries/function/ValueSource; =com/groupbyinc/flux/common/locationtech/spatial4j/shape/Shape 7 getBoundingBox E()Lcom/groupbyinc/flux/common/locationtech/spatial4j/shape/Rectangle; 9 : 8 ; getDistCalc Q()Lcom/groupbyinc/flux/common/locationtech/spatial4j/distance/DistanceCalculator; = >
? Acom/groupbyinc/flux/common/locationtech/spatial4j/shape/Rectangle A getMinX ()D C D B E getMinY G D B H makePoint C(DD)Lcom/groupbyinc/flux/common/locationtech/spatial4j/shape/Point; J K
L getMaxX N D B O getMaxY Q D B R Mcom/groupbyinc/flux/common/locationtech/spatial4j/distance/DistanceCalculator T distance D(Lcom/groupbyinc/flux/common/locationtech/spatial4j/shape/Point;DD)D V W U X?? =??? ]com/groupbyinc/flux/common/apache/lucene/queries/function/valuesource/ReciprocalFloatFunction ] getCenter A()Lcom/groupbyinc/flux/common/locationtech/spatial4j/shape/Point; _ ` 8 a M(Lcom/groupbyinc/flux/common/apache/lucene/queries/function/ValueSource;FFF)V
c
^ d
queryShape ?Lcom/groupbyinc/flux/common/locationtech/spatial4j/shape/Shape; bbox CLcom/groupbyinc/flux/common/locationtech/spatial4j/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 ? ? &