org.apache.storm.elasticsearch.response

## Class BulkIndexResponse

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

-     public class BulkIndexResponse
      extends Object

  Mapped response for bulk index.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `BulkIndexResponse()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Integer` | `getFirstError()` Retrieve first error’s code from response.
    `String` | `getFirstResult()` Retrieve first result from response.
    `List<IndexItemDoc>` | `getItems()`
    `long` | `getTook()`
    `boolean` | `hasErrors()`
    `void` | `setErrors(boolean errors)`
    `void` | `setItems(List<IndexItemDoc> items)`
    `void` | `setTook(long took)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### BulkIndexResponse

          public BulkIndexResponse()

  - ### Method Detail

    - #### 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

Copyright © 2019 The Apache Software Foundation. All rights reserved.