Package org.elasticsearch.action.index
Class IndexResponse.Builder
- java.lang.Object
-
- org.elasticsearch.action.DocWriteResponse.Builder
-
- org.elasticsearch.action.index.IndexResponse.Builder
-
- Enclosing class:
- IndexResponse
public static class IndexResponse.Builder extends DocWriteResponse.Builder
Builder class forIndexResponse. This builder is usually used during xcontent parsing to temporarily store the parsed values, then thebuild()method is called to instantiate theIndexResponse.
-
-
Field Summary
-
Fields inherited from class org.elasticsearch.action.DocWriteResponse.Builder
forcedRefresh, id, primaryTerm, result, seqNo, shardId, shardInfo, type, version
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description IndexResponsebuild()-
Methods inherited from class org.elasticsearch.action.DocWriteResponse.Builder
getId, getShardId, getType, setForcedRefresh, setId, setPrimaryTerm, setResult, setSeqNo, setShardId, setShardInfo, setType, setVersion
-
-
-
-
Method Detail
-
build
public IndexResponse build()
- Specified by:
buildin classDocWriteResponse.Builder
-
-