Class BulkByScrollResponse

All Implemented Interfaces:
Writeable, org.elasticsearch.common.util.concurrent.RefCounted, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentFragment

public class BulkByScrollResponse
extends ActionResponse
implements org.elasticsearch.common.xcontent.ToXContentFragment
Response used for actions that index many documents using a scroll request.
  • Constructor Details

  • Method Details

    • getTook

      public org.elasticsearch.common.unit.TimeValue getTook()
    • getStatus

      public BulkByScrollTask.Status getStatus()
    • getCreated

      public long getCreated()
    • getTotal

      public long getTotal()
    • getDeleted

      public long getDeleted()
    • getUpdated

      public long getUpdated()
    • getBatches

      public int getBatches()
    • getVersionConflicts

      public long getVersionConflicts()
    • getNoops

      public long getNoops()
    • getReasonCancelled

      public java.lang.String getReasonCancelled()
      The reason that the request was canceled or null if it hasn't been.
    • getBulkRetries

      public long getBulkRetries()
      The number of times that the request had retry bulk actions.
    • getSearchRetries

      public long getSearchRetries()
      The number of times that the request had retry search actions.
    • getBulkFailures

      public java.util.List<BulkItemResponse.Failure> getBulkFailures()
      All of the bulk failures. Version conflicts are only included if the request sets abortOnVersionConflict to true (the default).
    • getSearchFailures

      public java.util.List<ScrollableHitSource.SearchFailure> getSearchFailures()
      All search failures.
    • isTimedOut

      public boolean isTimedOut()
      Did any of the sub-requests that were part of this request timeout?
    • writeTo

      public void writeTo​(StreamOutput out) throws java.io.IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Throws:
      java.io.IOException
    • toXContent

      public org.elasticsearch.common.xcontent.XContentBuilder toXContent​(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException
      Specified by:
      toXContent in interface org.elasticsearch.common.xcontent.ToXContent
      Throws:
      java.io.IOException
    • fromXContent

      public static BulkByScrollResponse fromXContent​(org.elasticsearch.common.xcontent.XContentParser parser)
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object