Class DataframeAnalyticsSource.Builder

java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.ml.DataframeAnalyticsSource.Builder
All Implemented Interfaces:
ObjectBuilder<DataframeAnalyticsSource>
Enclosing class:
DataframeAnalyticsSource

public static class DataframeAnalyticsSource.Builder
extends ObjectBuilderBase
implements ObjectBuilder<DataframeAnalyticsSource>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • index

      public final DataframeAnalyticsSource.Builder index​(java.util.List<java.lang.String> list)
      Required - Index or indices on which to perform the analysis. It can be a single index or index pattern as well as an array of indices or patterns. NOTE: If your source indices contain documents with the same IDs, only the document that is indexed last appears in the destination index.

      API name: index

      Adds all elements of list to index.

    • index

      public final DataframeAnalyticsSource.Builder index​(java.lang.String value, java.lang.String... values)
      Required - Index or indices on which to perform the analysis. It can be a single index or index pattern as well as an array of indices or patterns. NOTE: If your source indices contain documents with the same IDs, only the document that is indexed last appears in the destination index.

      API name: index

      Adds one or more values to index.

    • query

      public final DataframeAnalyticsSource.Builder query​(@Nullable Query value)
      The Elasticsearch query domain-specific language (DSL). This value corresponds to the query object in an Elasticsearch search POST body. All the options that are supported by Elasticsearch can be used, as this object is passed verbatim to Elasticsearch. By default, this property has the following value: {"match_all": {}}.

      API name: query

    • query

      public final DataframeAnalyticsSource.Builder query​(java.util.function.Function<Query.Builder,​ObjectBuilder<Query>> fn)
      The Elasticsearch query domain-specific language (DSL). This value corresponds to the query object in an Elasticsearch search POST body. All the options that are supported by Elasticsearch can be used, as this object is passed verbatim to Elasticsearch. By default, this property has the following value: {"match_all": {}}.

      API name: query

    • runtimeMappings

      public final DataframeAnalyticsSource.Builder runtimeMappings​(java.util.Map<java.lang.String,​RuntimeField> map)
      Definitions of runtime fields that will become part of the mapping of the destination index.

      API name: runtime_mappings

      Adds all entries of map to runtimeMappings.

    • runtimeMappings

      public final DataframeAnalyticsSource.Builder runtimeMappings​(java.lang.String key, RuntimeField value)
      Definitions of runtime fields that will become part of the mapping of the destination index.

      API name: runtime_mappings

      Adds an entry to runtimeMappings.

    • runtimeMappings

      public final DataframeAnalyticsSource.Builder runtimeMappings​(java.lang.String key, java.util.function.Function<RuntimeField.Builder,​ObjectBuilder<RuntimeField>> fn)
      Definitions of runtime fields that will become part of the mapping of the destination index.

      API name: runtime_mappings

      Adds an entry to runtimeMappings using a builder lambda.

    • source

      public final DataframeAnalyticsSource.Builder source​(@Nullable DataframeAnalysisAnalyzedFields value)
      Specify includes and/or `excludes patterns to select which fields will be present in the destination. Fields that are excluded cannot be included in the analysis.

      API name: _source

    • source

      Specify includes and/or `excludes patterns to select which fields will be present in the destination. Fields that are excluded cannot be included in the analysis.

      API name: _source

    • build

      public DataframeAnalyticsSource build()
      Specified by:
      build in interface ObjectBuilder<DataframeAnalyticsSource>
      Throws:
      java.lang.NullPointerException - if some of the required fields are null.