Class PostDataRequest

    • Constructor Detail

      • PostDataRequest

        public PostDataRequest​(java.lang.String jobId,
                               XContentType xContentType,
                               BytesReference content)
        Create a new PostDataRequest object
        Parameters:
        jobId - non-null jobId of the job to post data to
        xContentType - content type of the data to post. Only XContentType.JSON or XContentType.SMILE are supported
        content - bulk serialized content in the format of the passed XContentType
      • PostDataRequest

        public PostDataRequest​(java.lang.String jobId,
                               XContentType xContentType,
                               byte[] content)
        Create a new PostDataRequest object referencing the passed byte[] content
        Parameters:
        jobId - non-null jobId of the job to post data to
        xContentType - content type of the data to post. Only XContentType.JSON or XContentType.SMILE are supported
        content - bulk serialized content in the format of the passed XContentType
    • Method Detail

      • getJobId

        public java.lang.String getJobId()
      • getResetStart

        public java.lang.String getResetStart()
      • setResetStart

        public void setResetStart​(java.lang.String resetStart)
        Specifies the start of the bucket resetting range
        Parameters:
        resetStart - String representation of a timestamp; may be an epoch seconds, epoch millis or an ISO 8601 string
      • getResetEnd

        public java.lang.String getResetEnd()
      • setResetEnd

        public void setResetEnd​(java.lang.String resetEnd)
        Specifies the end of the bucket resetting range
        Parameters:
        resetEnd - String representation of a timestamp; may be an epoch seconds, epoch millis or an ISO 8601 string
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object