Class DocWriteResponse.Builder

java.lang.Object
org.elasticsearch.action.DocWriteResponse.Builder
Direct Known Subclasses:
DeleteResponse.Builder, IndexResponse.Builder, UpdateResponse.Builder
Enclosing class:
DocWriteResponse

public abstract static class DocWriteResponse.Builder extends Object
Base class of all DocWriteResponse builders. These DocWriteResponse.Builder are used during xcontent parsing to temporarily store the parsed values, then the build() method is called to instantiate the appropriate DocWriteResponse with the parsed values.
  • Field Details

  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • getShardId

      public ShardId getShardId()
    • setShardId

      public void setShardId(ShardId shardId)
    • getType

      public String getType()
    • setType

      public void setType(String type)
    • getId

      public String getId()
    • setId

      public void setId(String id)
    • setVersion

      public void setVersion(Long version)
    • setResult

      public void setResult(DocWriteResponse.Result result)
    • setForcedRefresh

      public void setForcedRefresh(boolean forcedRefresh)
    • setShardInfo

      public void setShardInfo(ReplicationResponse.ShardInfo shardInfo)
    • setSeqNo

      public void setSeqNo(long seqNo)
    • setPrimaryTerm

      public void setPrimaryTerm(long primaryTerm)
    • build

      public abstract DocWriteResponse build()