
com.groupbyinc.flux.search.aggregations.bucket.range.geodistance.GeoDistanceBuilder.class Maven / Gradle / Ivy
???? 3 ? Scom/groupbyinc/flux/search/aggregations/bucket/range/geodistance/GeoDistanceBuilder ?Lcom/groupbyinc/flux/search/aggregations/AggregationBuilder; :com/groupbyinc/flux/search/aggregations/AggregationBuilder GeoDistanceBuilder.java Ycom/groupbyinc/flux/search/aggregations/bucket/range/geodistance/GeoDistanceBuilder$Range Range 5com/groupbyinc/flux/common/xcontent/ToXContent$Params
.com/groupbyinc/flux/common/xcontent/ToXContent Params @com/groupbyinc/flux/search/aggregations/InternalAggregation$Type ;com/groupbyinc/flux/search/aggregations/InternalAggregation Type field Ljava/lang/String; unit .Lcom/groupbyinc/flux/common/unit/DistanceUnit; distanceType ,Lcom/groupbyinc/flux/common/geo/GeoDistance; point )Lcom/groupbyinc/flux/common/geo/GeoPoint; ranges Ljava/util/List; mLjava/util/List; (Ljava/lang/String;)V Tcom/groupbyinc/flux/search/aggregations/bucket/range/geodistance/InternalGeoDistance ! TYPE BLcom/groupbyinc/flux/search/aggregations/InternalAggregation$Type; # $ " % name ()Ljava/lang/String; ' (
) '(Ljava/lang/String;Ljava/lang/String;)V +
, java/util/ArrayList . ()V 0
/ 1 3 this ULcom/groupbyinc/flux/search/aggregations/bucket/range/geodistance/GeoDistanceBuilder; i(Ljava/lang/String;)Lcom/groupbyinc/flux/search/aggregations/bucket/range/geodistance/GeoDistanceBuilder; 8 ?(Lcom/groupbyinc/flux/common/unit/DistanceUnit;)Lcom/groupbyinc/flux/search/aggregations/bucket/range/geodistance/GeoDistanceBuilder; ; ?(Lcom/groupbyinc/flux/common/geo/GeoDistance;)Lcom/groupbyinc/flux/search/aggregations/bucket/range/geodistance/GeoDistanceBuilder; > 'com/groupbyinc/flux/common/geo/GeoPoint @ parseFromLatLon =(Ljava/lang/String;)Lcom/groupbyinc/flux/common/geo/GeoPoint; B C
A D ?(Lcom/groupbyinc/flux/common/geo/GeoPoint;)Lcom/groupbyinc/flux/search/aggregations/bucket/range/geodistance/GeoDistanceBuilder; F
G latLon J geohash
A 1 resetFromGeoHash N C
A O lat X(D)Lcom/groupbyinc/flux/search/aggregations/bucket/range/geodistance/GeoDistanceBuilder; resetLat ,(D)Lcom/groupbyinc/flux/common/geo/GeoPoint; S T
A U D lon resetLon Y T
A Z addRange k(Ljava/lang/String;DD)Lcom/groupbyinc/flux/search/aggregations/bucket/range/geodistance/GeoDistanceBuilder; java/lang/Double ^ valueOf (D)Ljava/lang/Double; ` a
_ b 9(Ljava/lang/String;Ljava/lang/Double;Ljava/lang/Double;)V d
e java/util/List g add (Ljava/lang/Object;)Z i j h k key from to Y(DD)Lcom/groupbyinc/flux/search/aggregations/bucket/range/geodistance/GeoDistanceBuilder; \ ]
q addUnboundedTo j(Ljava/lang/String;D)Lcom/groupbyinc/flux/search/aggregations/bucket/range/geodistance/GeoDistanceBuilder; s t
u addUnboundedFrom w t
x internalXContent ?(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; java/io/IOException | 3com/groupbyinc/flux/common/xcontent/XContentBuilder ~ startObject 7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
? isEmpty ()Z ? ? h ? ?com/groupbyinc/flux/search/builder/SearchSourceBuilderException ? java/lang/StringBuilder ?
? 1 Aat least one range must be defined for geo_distance aggregation [ ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? getName ? (
? ] ? toString ? (
? ?
? ? ;center point must be defined for geo_distance aggregation [ ? [(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ?
? [(Ljava/lang/String;Ljava/lang/Object;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ?
?
distance_type ? *com/groupbyinc/flux/common/geo/GeoDistance ?
? ) java/util/Locale ? ROOT Ljava/util/Locale; ? ? ? ? java/lang/String ? toLowerCase &(Ljava/util/Locale;)Ljava/lang/String; ? ?
? ? center ? I(Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
? Q ()D Q ?
A ? J(Ljava/lang/String;D)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ?
? X X ?
A ? endObject ? ?
?
startArray ? ?
? iterator ()Ljava/util/Iterator; ? ? h ? java/util/Iterator ? hasNext ? ? ? ? next ()Ljava/lang/Object; ? ? ? ?
toXContent ? {
? endArray ? ?
? range [Lcom/groupbyinc/flux/search/aggregations/bucket/range/geodistance/GeoDistanceBuilder$Range; builder 5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; params 7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params; Signature Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions
SourceFile InnerClasses ! ? ? S *+? &? *? -*? /Y? 2? 4? ? 5 6 ' ? Y S Z 7 ? ? *+? 9*? ? 5 6 ?
` a : ? ? *+? <*? ? 5 6 ?
h i = ? ? *+? ?*? ? 5 6 ?
q r 7 ? = *+? E? H? ? 5 6 I ? z F ? ? *+? K*? ? 5 6 ?
? ? L 7 ? f *? K? *? AY? M? K*? K+? PW*? ? 5 6 L ? ? ? ? ? ? Q R ? f *? K? *? AY? M? K*? K'? VW*? ? 5 6 Q W ? ? ? ? ? ? X R ? f *? K? *? AY? M? K*? K'? [W*? ? 5 6 X W ? ? ? ? ? ? \ ] ? i *? 4? Y+(? c? c? f? l W*? ? * 5 6 m n W o W ?
? ? \ p ? F *')? r? ? 5 6 n W o W ? ? s t ? [ *? 4? Y+(? c? f? l W*? ? 5 6 m o W ?
? ? s R ? ; *'? v? ? 5 6 o W ? ? w t ? [ *? 4? Y+(? c? f? l W*? ? 5 6 m n W ?
? ? w R ? ; *'? y? ? 5 6 n W ? ? z { ? ? ?+? ?W*? 4? ? ? &? ?Y? ?Y? ??? ?*? ?? ??? ?? ?? ??*? K? &? ?Y? ?Y? ??? ?*? ?? ??? ?? ?? ??*? 9? +?*? 9? ?W*?