Class BulkIndexResponse

java.lang.Object
org.apache.storm.elasticsearch.response.BulkIndexResponse

public class BulkIndexResponse extends Object
Mapped response for bulk index.
  • Constructor Details

    • BulkIndexResponse

      public BulkIndexResponse()
  • Method Details

    • hasErrors

      public boolean hasErrors()
    • setErrors

      public void setErrors(boolean errors)
    • getTook

      public long getTook()
    • setTook

      public void setTook(long took)
    • getItems

      public List<IndexItemDoc> getItems()
    • setItems

      public void setItems(List<IndexItemDoc> items)
    • getFirstError

      public Integer getFirstError()
      Retrieve first error's code from response.
      Returns:
      error status code
    • getFirstResult

      public String getFirstResult()
      Retrieve first result from response.
      Returns:
      result text