Class DatafeedConfig

  • All Implemented Interfaces:
    ToXContent, ToXContentObject

    public class DatafeedConfig
    extends java.lang.Object
    implements ToXContentObject
    The datafeed configuration object. It specifies which indices to get the data from and offers parameters for customizing different aspects of the process.
    • Method Detail

      • getId

        public java.lang.String getId()
      • getJobId

        public java.lang.String getJobId()
      • getQueryDelay

        public TimeValue getQueryDelay()
      • getFrequency

        public TimeValue getFrequency()
      • getIndices

        public java.util.List<java.lang.String> getIndices()
      • getTypes

        public java.util.List<java.lang.String> getTypes()
      • getScrollSize

        public java.lang.Integer getScrollSize()
      • equals

        public boolean equals​(java.lang.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 java.lang.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 java.lang.Object