Class DatafeedUpdate

java.lang.Object
org.elasticsearch.client.ml.datafeed.DatafeedUpdate
All Implemented Interfaces:
org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject

public class DatafeedUpdate extends Object implements org.elasticsearch.xcontent.ToXContentObject
A datafeed update contains partial properties to update a DatafeedConfig. The main difference between this class and DatafeedConfig is that here all fields are nullable.
  • Field Details

  • Method Details

    • getId

      public String getId()
      Get the id of the datafeed to update
    • getRuntimeMappings

      public Map<String,Object> getRuntimeMappings()
    • toXContent

      public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.elasticsearch.xcontent.ToXContent
      Throws:
      IOException
    • getJobId

      public String getJobId()
    • getQueryDelay

      public org.elasticsearch.core.TimeValue getQueryDelay()
    • getFrequency

      public org.elasticsearch.core.TimeValue getFrequency()
    • getIndices

      public List<String> getIndices()
    • getScrollSize

      public Integer getScrollSize()
    • getQuery

      public org.elasticsearch.common.bytes.BytesReference getQuery()
    • getAggregations

      public org.elasticsearch.common.bytes.BytesReference getAggregations()
    • getScriptFields

      public List<org.elasticsearch.search.builder.SearchSourceBuilder.ScriptField> getScriptFields()
    • getChunkingConfig

      public ChunkingConfig getChunkingConfig()
    • getDelayedDataCheckConfig

      public DelayedDataCheckConfig getDelayedDataCheckConfig()
    • getMaxEmptySearches

      public Integer getMaxEmptySearches()
    • getIndicesOptions

      public org.elasticsearch.action.support.IndicesOptions getIndicesOptions()
    • equals

      public boolean equals(Object other)
      The lists of indices and types are compared for equality but they are not sorted first so this test could fail simply because the indices and types lists are in different orders. Also note this could be a heavy operation when a query or aggregations are set as we need to convert the bytes references into maps to correctly compare them.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Note this could be a heavy operation when a query or aggregations are set as we need to convert the bytes references into maps to compute a stable hash code.
      Overrides:
      hashCode in class Object
    • builder

      public static DatafeedUpdate.Builder builder(String id)