Class BulkIndexResponse
java.lang.Object
org.apache.storm.elasticsearch.response.BulkIndexResponse
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
-
setItems
-
getFirstError
Retrieve first error's code from response.- Returns:
- error status code
-
getFirstResult
Retrieve first result from response.- Returns:
- result text
-