Class BulkByScrollResponse

java.lang.Object
org.opensearch.core.transport.TransportMessage
org.opensearch.core.transport.TransportResponse
org.opensearch.core.action.ActionResponse
org.opensearch.index.reindex.BulkByScrollResponse
All Implemented Interfaces:
org.opensearch.core.common.io.stream.Writeable, org.opensearch.core.xcontent.ToXContent, org.opensearch.core.xcontent.ToXContentFragment

public class BulkByScrollResponse extends org.opensearch.core.action.ActionResponse implements org.opensearch.core.xcontent.ToXContentFragment
Response used for actions that index many documents using a scroll request.
Opensearch.internal:
  • Constructor Details

  • Method Details

    • getTook

      public org.opensearch.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 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(org.opensearch.core.common.io.stream.StreamOutput out) throws IOException
      Specified by:
      writeTo in interface org.opensearch.core.common.io.stream.Writeable
      Throws:
      IOException
    • toXContent

      public org.opensearch.core.xcontent.XContentBuilder toXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.opensearch.core.xcontent.ToXContent
      Throws:
      IOException
    • fromXContent

      public static BulkByScrollResponse fromXContent(org.opensearch.core.xcontent.XContentParser parser)
    • toString

      public String toString()
      Overrides:
      toString in class Object