Class BulkResponseItem

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

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

  • Method Details

    • of

    • operationType

      public final OperationType operationType()
      Required -
    • id

      @Nullable public final String id()
      The document ID associated with the operation.

      API name: _id

    • index

      public final String index()
      Required - Name of the index associated with the operation. If the operation targeted a data stream, this is the backing index into which the document was written.

      API name: _index

    • status

      public final int status()
      Required - HTTP status code returned for the operation.

      API name: status

    • error

      @Nullable public final ErrorCause error()
      Contains additional information about the failed operation. The parameter is only returned for failed operations.

      API name: error

    • primaryTerm

      @Nullable public final Long primaryTerm()
      The primary term assigned to the document for the operation.

      API name: _primary_term

    • result

      @Nullable public final String result()
      Result of the operation. Successful values are created, deleted, and updated.

      API name: result

    • seqNo

      @Nullable public final Long seqNo()
      The sequence number assigned to the document for the operation. Sequence numbers are used to ensure an older version of a document doesn’t overwrite a newer version.

      API name: _seq_no

    • shards

      @Nullable public final ShardStatistics shards()
      Contains shard information for the operation.

      API name: _shards

    • version

      @Nullable public final Long version()
      The document version associated with the operation. The document version is incremented each time the document is updated.

      API name: _version

    • forcedRefresh

      @Nullable public final Boolean forcedRefresh()
      API name: forced_refresh
    • get

      @Nullable public final InlineGet<Map<String,JsonData>> get()
      API name: get
    • 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
    • setupBulkResponseItemDeserializer

      protected static void setupBulkResponseItemDeserializer(ObjectDeserializer<BulkResponseItem.Builder> op)