Class CompositeValuesSourceBuilder<AB extends CompositeValuesSourceBuilder<AB>>

    • Field Detail

      • name

        protected final java.lang.String name
    • Method Detail

      • innerWriteTo

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

        protected abstract void doXContentBody​(XContentBuilder builder,
                                               ToXContent.Params params)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • hashCode

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

        protected abstract int innerHashCode()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • innerEquals

        protected abstract boolean innerEquals​(AB builder)
      • name

        public java.lang.String name()
      • field

        public AB field​(java.lang.String field)
        Sets the field to use for this source
      • field

        public java.lang.String field()
        Gets the field to use for this source
      • script

        public AB script​(Script script)
        Sets the script to use for this source
      • script

        public Script script()
        Gets the script to use for this source
      • valueType

        public AB valueType​(ValueType valueType)
        Sets the ValueType for the value produced by this source
      • valueType

        public ValueType valueType()
        Gets the ValueType for the value produced by this source
      • missing

        @Deprecated
        public AB missing​(java.lang.Object missing)
        Deprecated.
        Sets the value to use when the source finds a missing value in a document.
      • missing

        @Deprecated
        public java.lang.Object missing()
        Deprecated.
      • missingBucket

        public AB missingBucket​(boolean missingBucket)
        If true an explicit `null bucket will represent documents with missing values.
      • missingBucket

        public boolean missingBucket()
        False if documents with missing values are ignored, otherwise missing values are represented by an explicit `null` value.
      • order

        public AB order​(java.lang.String order)
        Sets the SortOrder to use to sort values produced this source
      • order

        public AB order​(SortOrder order)
        Sets the SortOrder to use to sort values produced this source
      • order

        public SortOrder order()
        Gets the SortOrder to use to sort values produced this source
      • format

        public AB format​(java.lang.String format)
        Sets the format to use for the output of the aggregation.
      • format

        public java.lang.String format()
        Gets the format to use for the output of the aggregation.
      • innerBuild

        protected abstract org.elasticsearch.search.aggregations.bucket.composite.CompositeValuesSourceConfig innerBuild​(SearchContext context,
                                                                                                                         ValuesSourceConfig<?> config)
                                                                                                                  throws java.io.IOException
        Creates a CompositeValuesSourceConfig for this source.
        Parameters:
        context - The search context for this source.
        config - The ValuesSourceConfig for this source.
        Throws:
        java.io.IOException
      • build

        public final org.elasticsearch.search.aggregations.bucket.composite.CompositeValuesSourceConfig build​(SearchContext context)
                                                                                                       throws java.io.IOException
        Throws:
        java.io.IOException