Class DataframeAnalyticsSource.Builder

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

public static class DataframeAnalyticsSource.Builder
extends java.lang.Object
implements ObjectBuilder<DataframeAnalyticsSource>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • index

      public DataframeAnalyticsSource.Builder index​(java.util.List<java.lang.String> value)
      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

    • index

      public DataframeAnalyticsSource.Builder index​(java.lang.String... value)
      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

    • addIndex

      public DataframeAnalyticsSource.Builder addIndex​(java.lang.String value)
      Add a value to index(List), creating the list if needed.
    • query

      public 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 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 DataframeAnalyticsSource.Builder runtimeMappings​(@Nullable java.util.Map<java.lang.String,​RuntimeField> value)
      Definitions of runtime fields that will become part of the mapping of the destination index.

      API name: runtime_mappings

    • putRuntimeMappings

      public DataframeAnalyticsSource.Builder putRuntimeMappings​(java.lang.String key, RuntimeField value)
      Add a key/value to runtimeMappings(Map), creating the map if needed.
    • runtimeMappings

      public DataframeAnalyticsSource.Builder runtimeMappings​(java.lang.String key, java.util.function.Function<RuntimeField.Builder,​ObjectBuilder<RuntimeField>> fn)
      Set runtimeMappings(Map) to a singleton map.
    • putRuntimeMappings

      public DataframeAnalyticsSource.Builder putRuntimeMappings​(java.lang.String key, java.util.function.Function<RuntimeField.Builder,​ObjectBuilder<RuntimeField>> fn)
      Add a key/value to runtimeMappings(Map), creating the map if needed.
    • source

      public DataframeAnalyticsSource.Builder source​(@Nullable jakarta.json.JsonValue 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

    • build

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