Class BulkItemRequest

java.lang.Object
org.elasticsearch.action.bulk.BulkItemRequest
All Implemented Interfaces:
Writeable

public class BulkItemRequest
extends java.lang.Object
implements Writeable
  • Constructor Details

  • Method Details

    • id

      public int id()
    • request

      public DocWriteRequest<?> request()
    • index

      public java.lang.String index()
    • abort

      public void abort​(java.lang.String index, java.lang.Exception cause)
      Abort this request, and store a BulkItemResponse.Failure response.
      Parameters:
      index - The concrete index that was resolved for this request
      cause - The cause of the rejection (may not be null)
      Throws:
      java.lang.IllegalStateException - If a response already exists for this request
    • 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