Class BulkByScrollResponse

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

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.core.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 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 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 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 IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Throws:
      IOException
    • 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
    • fromXContent

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

      public String toString()
      Overrides:
      toString in class Object