
com.groupbyinc.flux.common.apache.lucene.spatial.query.SpatialArgs.class Maven / Gradle / Ivy
???? 4 ? Bcom/groupbyinc/flux/common/apache/lucene/spatial/query/SpatialArgs java/lang/Object SpatialArgs.java DEFAULT_DISTERRPCT D???????? operation ILcom/groupbyinc/flux/common/apache/lucene/spatial/query/SpatialOperation; shape (Lorg/locationtech/spatial4j/shape/Shape;
distErrPct Ljava/lang/Double; distErr t(Lcom/groupbyinc/flux/common/apache/lucene/spatial/query/SpatialOperation;Lorg/locationtech/spatial4j/shape/Shape;)V ()V
Gcom/groupbyinc/flux/common/apache/lucene/spatial/query/SpatialOperation &org/locationtech/spatial4j/shape/Shape java/lang/NullPointerException operation and shape are required (Ljava/lang/String;)V
!
# this DLcom/groupbyinc/flux/common/apache/lucene/spatial/query/SpatialArgs; calcDistanceFromErrPct _(Lorg/locationtech/spatial4j/shape/Shape;DLorg/locationtech/spatial4j/context/SpatialContext;)D?? "java/lang/IllegalArgumentException + java/lang/StringBuilder -
. distErrPct 0 append -(Ljava/lang/String;)Ljava/lang/StringBuilder; 2 3
. 4 (D)Ljava/lang/StringBuilder; 2 6
. 7 must be between [0 to 0.5] 9 toString ()Ljava/lang/String; ; <
. =
, &org/locationtech/spatial4j/shape/Point @ getBoundingBox .()Lorg/locationtech/spatial4j/shape/Rectangle; B C D *org/locationtech/spatial4j/shape/Rectangle F getCenter *()Lorg/locationtech/spatial4j/shape/Point; H I G J getY ()D L M A N getMaxY P M G Q getMinY S M G T 1org/locationtech/spatial4j/context/SpatialContext V getDistCalc :()Lorg/locationtech/spatial4j/distance/DistanceCalculator; X Y
W Z getMaxX \ M G ] 6org/locationtech/spatial4j/distance/DistanceCalculator _ distance -(Lorg/locationtech/spatial4j/shape/Point;DD)D a b ` c ctx 3Lorg/locationtech/spatial4j/context/SpatialContext; bbox ,Lorg/locationtech/spatial4j/shape/Rectangle; ctr (Lorg/locationtech/spatial4j/shape/Point; y diagonalDist resolveDistErr 7(Lorg/locationtech/spatial4j/context/SpatialContext;D)D o java/lang/Double q doubleValue s M
r t v ' (
x defaultDistErrPct validate ,Only distErr or distErrPct can be specified. | Hcom/groupbyinc/flux/common/apache/lucene/spatial/query/SpatialArgsParser ~ writeSpatialArgs X(Lcom/groupbyinc/flux/common/apache/lucene/spatial/query/SpatialArgs;)Ljava/lang/String; ? ?
? getOperation K()Lcom/groupbyinc/flux/common/apache/lucene/spatial/query/SpatialOperation; setOperation L(Lcom/groupbyinc/flux/common/apache/lucene/spatial/query/SpatialOperation;)V getShape *()Lorg/locationtech/spatial4j/shape/Shape; setShape +(Lorg/locationtech/spatial4j/shape/Shape;)V
getDistErrPct ()Ljava/lang/Double;
setDistErrPct (Ljava/lang/Double;)V
getDistErr
setDistErr
ConstantValue Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions
SourceFile ! ?
? ? !*? +? ,?
? Y? ?*+? "*,? $? ? ! % &