com.groupbyinc.flux.search.aggregations.metrics.geocentroid.InternalGeoCentroid.class Maven / Gradle / Ivy
???? 4b Ocom/groupbyinc/flux/search/aggregations/metrics/geocentroid/InternalGeoCentroid ;com/groupbyinc/flux/search/aggregations/InternalAggregation Gcom/groupbyinc/flux/search/aggregations/metrics/geocentroid/GeoCentroid InternalGeoCentroid.java Vcom/groupbyinc/flux/search/aggregations/metrics/geocentroid/InternalGeoCentroid$Fields Fields Icom/groupbyinc/flux/search/aggregations/InternalAggregation$ReduceContext
ReduceContext 5com/groupbyinc/flux/common/xcontent/ToXContent$Params .com/groupbyinc/flux/common/xcontent/ToXContent Params centroid )Lcom/groupbyinc/flux/common/geo/GeoPoint; count J $assertionsDisabled Z encodeLatLon (DD)J =com/groupbyinc/flux/common/apache/lucene/geo/GeoEncodingUtils encodeLatitude (D)I
java/lang/Integer ! toUnsignedLong (I)J # $
" % encodeLongitude '
( lat D lon decodeLatitude (J)D (I)D - /
0
encodedLatLon decodeLongitude ???? 3 /
6 ^(Ljava/lang/String;Lcom/groupbyinc/flux/common/geo/GeoPoint;JLjava/util/List;Ljava/util/Map;)V 4(Ljava/lang/String;Ljava/util/List;Ljava/util/Map;)V 8 :
; = java/lang/String ? 'com/groupbyinc/flux/common/geo/GeoPoint A java/util/List C
java/util/Map E java/lang/AssertionError G ()V 8 I
H J L N this QLcom/groupbyinc/flux/search/aggregations/metrics/geocentroid/InternalGeoCentroid; name Ljava/lang/String; pipelineAggregators WLjava/util/List; Ljava/util/List; metaData 5Ljava/util/Map; Ljava/util/Map; 5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)V java/io/IOException [ 8 Z
] 0com/groupbyinc/flux/common/io/stream/StreamInput _ readVLong ()J a b
` c readBoolean ()Z e f
` g readLong i b
` j - .
l 3 .
n (DD)V 8 p
B q hash in 2Lcom/groupbyinc/flux/common/io/stream/StreamInput; doWriteTo 6(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V 1com/groupbyinc/flux/common/io/stream/StreamOutput x
writeVLong (J)V z {
y | writeBoolean (Z)V ~
y ? ()D * ?
B ? , ?
B ?
? writeLong ? {
y ? out 3Lcom/groupbyinc/flux/common/io/stream/StreamOutput; getWriteableName ()Ljava/lang/String; geo_centroid ? +()Lcom/groupbyinc/flux/common/geo/GeoPoint; doReduce ?(Ljava/util/List;Lcom/groupbyinc/flux/search/aggregations/InternalAggregation$ReduceContext;)Lcom/groupbyinc/flux/search/aggregations/metrics/geocentroid/InternalGeoCentroid;? iterator ()Ljava/util/Iterator; ? ? D ? java/util/Iterator ? hasNext ? f ? ? next ()Ljava/lang/Object; ? ? ? ? java/lang/Double ? isNaN (D)Z ? ?
? ? getLon ? ?
B ? getLat ? ?
B ? R S ? ()Ljava/util/List; T ?
? getMetaData ()Ljava/util/Map; ? ?
? 8 9
? centroidAgg aggregation =Lcom/groupbyinc/flux/search/aggregations/InternalAggregation; aggregations OLjava/util/List;
reduceContext KLcom/groupbyinc/flux/search/aggregations/InternalAggregation$ReduceContext; lonSum latSum
totalCount I result getProperty $(Ljava/util/List;)Ljava/lang/Object; isEmpty ? f D ? size ()I ? ? D ? get (I)Ljava/lang/Object; ? ? D ? hashCode ? ?
@ ? value ? equals (Ljava/lang/Object;)Z ? ?
@ ? * , valueOf (D)Ljava/lang/Double; ? ?
? ? java/lang/Long ? (J)Ljava/lang/Long; ? ?
? ? "java/lang/IllegalArgumentException ? java/lang/StringBuilder ?
? J Found unknown path element [ ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? ] in [ ? getName ? ?
? ] ? toString ? ?
? ? (Ljava/lang/String;)V 8 ?
? ? path not supported for [ ]: -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ?
?
coordinate path $Ljava/util/List; doXContentBody ?(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; CENTROID 'Lcom/groupbyinc/flux/common/ParseField;
%com/groupbyinc/flux/common/ParseField getPreferredName ?
3com/groupbyinc/flux/common/xcontent/XContentBuilder startObject I(Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;
CENTROID_LAT field J(Ljava/lang/String;D)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;
! CENTROID_LON# $ endObject 7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;&'
( COUNT* + J(Ljava/lang/String;J)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;-
. builder 5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; params 7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params; doEquals java/util/Objects5 '(Ljava/lang/Object;Ljava/lang/Object;)Z ?7
68 o Ljava/lang/Object; that
doHashCode java/lang/Object> ([Ljava/lang/Object;)I s@
6A InternalGeoCentroid{centroid=C , count=E (J)Ljava/lang/StringBuilder; ?G
?H (C)Ljava/lang/StringBuilder; ?J
?K ?(Ljava/util/List;Lcom/groupbyinc/flux/search/aggregations/InternalAggregation$ReduceContext;)Lcom/groupbyinc/flux/search/aggregations/InternalAggregation; ? ?
N java/lang/ClassQ desiredAssertionStatusS f
RT Code LocalVariableTable LineNumberTable LocalVariableTypeTable
StackMapTable Signature ?(Ljava/lang/String;Lcom/groupbyinc/flux/common/geo/GeoPoint;JLjava/util/List;Ljava/util/Map;)V
Exceptions ?(Ljava/util/List;Lcom/groupbyinc/flux/search/aggregations/InternalAggregation$ReduceContext;)Lcom/groupbyinc/flux/search/aggregations/metrics/geocentroid/InternalGeoCentroid; 8(Ljava/util/List;)Ljava/lang/Object;
SourceFile InnerClasses ! V G &? ? & y(? )? &?? W * + , + X , - . V 3 }?? 1? W 2 X 0 3 . V 4
4?? 7? W
2 X 4 8 9 V M*+?