Class BulkResponse

java.lang.Object
co.elastic.clients.elasticsearch.core.BulkResponse
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable public class BulkResponse extends Object implements JsonpSerializable
See Also:
  • Field Details

  • Method Details

    • of

    • errors

      public final boolean errors()
      Required - If true, one or more of the operations in the bulk request did not complete successfully.

      API name: errors

    • items

      public final List<BulkResponseItem> items()
      Required - The result of each operation in the bulk request, in the order they were submitted.

      API name: items

    • took

      public final long took()
      Required - The length of time, in milliseconds, it took to process the bulk request.

      API name: took

    • ingestTook

      @Nullable public final Long ingestTook()
      API name: ingest_took
    • serialize

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setupBulkResponseDeserializer

      protected static void setupBulkResponseDeserializer(ObjectDeserializer<BulkResponse.Builder> op)