Class AbstractPipelineAggregationBuilder<PAB extends AbstractPipelineAggregationBuilder<PAB>>

    • Field Detail

      • BUCKETS_PATH_FIELD

        public static final ParseField BUCKETS_PATH_FIELD
        Field shared by many parsers.
      • type

        protected final java.lang.String type
      • metaData

        protected java.util.Map<java.lang.String,​java.lang.Object> metaData
    • Constructor Detail

      • AbstractPipelineAggregationBuilder

        protected AbstractPipelineAggregationBuilder​(java.lang.String name,
                                                     java.lang.String type,
                                                     java.lang.String[] bucketsPaths)
      • AbstractPipelineAggregationBuilder

        protected AbstractPipelineAggregationBuilder​(StreamInput in,
                                                     java.lang.String type)
                                              throws java.io.IOException
        Read from a stream.
        Throws:
        java.io.IOException
    • Method Detail

      • writeTo

        public void writeTo​(StreamOutput out)
                     throws java.io.IOException
        Description copied from interface: Writeable
        Write this into the StreamOutput.
        Throws:
        java.io.IOException
      • doWriteTo

        protected abstract void doWriteTo​(StreamOutput out)
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • type

        public java.lang.String type()
      • createInternal

        protected abstract PipelineAggregator createInternal​(java.util.Map<java.lang.String,​java.lang.Object> metaData)
                                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • validateSequentiallyOrderedParentAggs

        public static void validateSequentiallyOrderedParentAggs​(AggregatorFactory<?> parent,
                                                                 java.lang.String type,
                                                                 java.lang.String name)
        Validates pipeline aggregations that need sequentially ordered data.
      • overrideBucketsPath

        protected boolean overrideBucketsPath()
        Returns:
        true if the AbstractPipelineAggregationBuilder overrides the XContent rendering of the bucketPath option.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • doHashCode

        protected abstract int doHashCode()
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • doEquals

        protected abstract boolean doEquals​(java.lang.Object obj)
      • getType

        public java.lang.String getType()
        Description copied from interface: BaseAggregationBuilder
        The name of the type of aggregation built by this builder.