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 - The 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 - The HTTP status code returned for the operation.

      API name: status

    • failureStore

      @Nullable public final FailureStoreStatus failureStore()
      API name: failure_store
    • error

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

      API name: error

    • primaryTerm

      @Nullable public final Long primaryTerm()
      The primary term assigned to the document for the operation. This property is returned only for successful operations.

      API name: _primary_term

    • result

      @Nullable public final String result()
      The 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()
      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. This property is returned only for successful actions.

      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)