Class DatafeedUpdate

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

public class DatafeedUpdate extends Object implements org.elasticsearch.common.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.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     

    Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent

    org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static org.elasticsearch.common.xcontent.ConstructingObjectParser<DatafeedUpdate.Builder,​Void>
     

    Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent

    EMPTY_PARAMS
  • Method Summary

    Modifier and Type
    Method
    Description
    builder​(String id)
     
    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.
    org.elasticsearch.common.bytes.BytesReference
     
     
     
    org.elasticsearch.core.TimeValue
     
    Get the id of the datafeed to update
     
    org.elasticsearch.action.support.IndicesOptions
     
     
    org.elasticsearch.common.bytes.BytesReference
     
    org.elasticsearch.core.TimeValue
     
     
    List<org.elasticsearch.search.builder.SearchSourceBuilder.ScriptField>
     
     
    int
    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.
    org.elasticsearch.common.xcontent.XContentBuilder
    toXContent​(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject

    isFragment
  • 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.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.elasticsearch.common.xcontent.ToXContent
      Throws:
      IOException
    • 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)