
com.groupbyinc.flux.search.aggregations.pipeline.derivative.DerivativePipelineAggregationBuilder.class Maven / Gradle / Ivy
???? 4? `com/groupbyinc/flux/search/aggregations/pipeline/derivative/DerivativePipelineAggregationBuilder ?Lcom/groupbyinc/flux/search/aggregations/pipeline/AbstractPipelineAggregationBuilder; Scom/groupbyinc/flux/search/aggregations/pipeline/AbstractPipelineAggregationBuilder )DerivativePipelineAggregationBuilder.java Hcom/groupbyinc/flux/search/aggregations/pipeline/BucketHelpers$GapPolicy >com/groupbyinc/flux/search/aggregations/pipeline/BucketHelpers GapPolicy 5com/groupbyinc/flux/common/xcontent/ToXContent$Params .com/groupbyinc/flux/common/xcontent/ToXContent Params 8com/groupbyinc/flux/common/xcontent/XContentParser$Token 2com/groupbyinc/flux/common/xcontent/XContentParser Token 1com/groupbyinc/flux/search/DocValueFormat$Decimal )com/groupbyinc/flux/search/DocValueFormat Decimal Jcom/groupbyinc/flux/search/aggregations/pipeline/PipelineAggregator$Parser Ccom/groupbyinc/flux/search/aggregations/pipeline/PipelineAggregator Parser NAME Ljava/lang/String;
derivative " FORMAT_FIELD 'Lcom/groupbyinc/flux/common/ParseField; GAP_POLICY_FIELD
UNIT_FIELD format gapPolicy JLcom/groupbyinc/flux/search/aggregations/pipeline/BucketHelpers$GapPolicy; units '(Ljava/lang/String;Ljava/lang/String;)V java/lang/String . ((Ljava/lang/String;[Ljava/lang/String;)V , 0
1 this bLcom/groupbyinc/flux/search/aggregations/pipeline/derivative/DerivativePipelineAggregationBuilder; name bucketsPath :(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)V , 7
8 SKIP : * ; ) * = bucketsPaths [Ljava/lang/String; 5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)V java/io/IOException B G(Lcom/groupbyinc/flux/common/io/stream/StreamInput;Ljava/lang/String;)V , D
E 0com/groupbyinc/flux/common/io/stream/StreamInput G readOptionalString ()Ljava/lang/String; I J
H K ( ! M readBoolean ()Z O P
H Q readFrom ~(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/search/aggregations/pipeline/BucketHelpers$GapPolicy; S T
U + ! W 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 ] writeOptionalString (Ljava/lang/String;)V _ `
^ a writeBoolean (Z)V c d
^ e writeTo g \
h out 3Lcom/groupbyinc/flux/common/io/stream/StreamOutput; hasGapPolicy Z v(Ljava/lang/String;)Lcom/groupbyinc/flux/search/aggregations/pipeline/derivative/DerivativePipelineAggregationBuilder; "java/lang/IllegalArgumentException o java/lang/StringBuilder q ()V , s
r t [format] must not be null: [ v append -(Ljava/lang/String;)Ljava/lang/StringBuilder; x y
r z 5 ! | ] ~ toString ? J
r ? , `
p ? ?(Lcom/groupbyinc/flux/search/aggregations/pipeline/BucketHelpers$GapPolicy;)Lcom/groupbyinc/flux/search/aggregations/pipeline/derivative/DerivativePipelineAggregationBuilder; [gapPolicy] must not be null: [ ? L()Lcom/groupbyinc/flux/search/aggregations/pipeline/BucketHelpers$GapPolicy; unit [units] must not be null: [ ? ?(Lcom/groupbyinc/flux/search/aggregations/bucket/histogram/DateHistogramInterval;)Lcom/groupbyinc/flux/search/aggregations/pipeline/derivative/DerivativePipelineAggregationBuilder; Ncom/groupbyinc/flux/search/aggregations/bucket/histogram/DateHistogramInterval ?
? ? PLcom/groupbyinc/flux/search/aggregations/bucket/histogram/DateHistogramInterval; createInternal V(Ljava/util/Map;)Lcom/groupbyinc/flux/search/aggregations/pipeline/PipelineAggregator;
? RAW +Lcom/groupbyinc/flux/search/DocValueFormat; ? ? ? Xcom/groupbyinc/flux/search/aggregations/bucket/histogram/DateHistogramAggregationBuilder ? DATE_FIELD_UNITS Ljava/util/Map; ? ? ? ?
java/util/Map ? get &(Ljava/lang/Object;)Ljava/lang/Object; ? ? ? ? 0com/groupbyinc/flux/common/rounding/DateTimeUnit ? 1com/groupbyinc/flux/common/joda/time/DateTimeZone ? UTC 3Lcom/groupbyinc/flux/common/joda/time/DateTimeZone; ? ? ? ? field i(Lcom/groupbyinc/flux/common/joda/time/DateTimeZone;)Lcom/groupbyinc/flux/common/joda/time/DateTimeField; ? ?
? ? 2com/groupbyinc/flux/common/joda/time/DateTimeField ? getDurationField 6()Lcom/groupbyinc/flux/common/joda/time/DurationField; ? ?
? ? 2com/groupbyinc/flux/common/joda/time/DurationField ?
getUnitMillis ()J ? ?
? ? java/lang/Long ? valueOf (J)Ljava/lang/Long; ? ?
? ? java/lang/Object ? getClass ()Ljava/lang/Class; ? ?
? ? java/lang/Class ?
getSimpleName ? J
? ? .unit ? )com/groupbyinc/flux/common/unit/TimeValue ? parseTimeValue |(Ljava/lang/String;Lcom/groupbyinc/flux/common/unit/TimeValue;Ljava/lang/String;)Lcom/groupbyinc/flux/common/unit/TimeValue; ? ?
? ? getMillis ? ?
? ? Xcom/groupbyinc/flux/search/aggregations/pipeline/derivative/DerivativePipelineAggregator ? ? @ ? ?(Ljava/lang/String;[Ljava/lang/String;Lcom/groupbyinc/flux/search/DocValueFormat;Lcom/groupbyinc/flux/search/aggregations/pipeline/BucketHelpers$GapPolicy;Ljava/lang/Long;Ljava/util/Map;)V , ?
? ? formatter timeValue +Lcom/groupbyinc/flux/common/unit/TimeValue; dateTimeUnit 2Lcom/groupbyinc/flux/common/rounding/DateTimeUnit; metaData 5Ljava/util/Map;
xAxisUnits Ljava/lang/Long;
doValidate ^(Lcom/groupbyinc/flux/search/aggregations/AggregatorFactory;Ljava/util/List;Ljava/util/List;)V java/lang/IllegalStateException ? BUCKETS_PATH ? % ? %com/groupbyinc/flux/common/ParseField ? getPreferredName ? J
? ? . must contain a single entry for aggregation [ ?
? ? Scom/groupbyinc/flux/search/aggregations/bucket/histogram/HistogramAggregatorFactory ? minDocCount ? ?
? ? ,parent histogram of derivative aggregation [ ? ] must have min_doc_count of 0 ? Wcom/groupbyinc/flux/search/aggregations/bucket/histogram/DateHistogramAggregatorFactory
? derivative aggregation [ 3] must have a histogram or date_histogram as parent histoParent ULcom/groupbyinc/flux/search/aggregations/bucket/histogram/HistogramAggregatorFactory; YLcom/groupbyinc/flux/search/aggregations/bucket/histogram/DateHistogramAggregatorFactory; parent >Lcom/groupbyinc/flux/search/aggregations/AggregatorFactory<*>; ;Lcom/groupbyinc/flux/search/aggregations/AggregatorFactory; aggFactories NLjava/util/List; Ljava/util/List; pipelineAggregatoractories VLjava/util/List; internalXContent ?(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; $ % 3com/groupbyinc/flux/common/xcontent/XContentBuilder [(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ?
&