Class MsearchResponse.Builder<TDocument>
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.core.msearch.MultiSearchResult.AbstractBuilder<TDocument,MsearchResponse.Builder<TDocument>>
-
- org.opensearch.client.opensearch.core.MsearchResponse.Builder<TDocument>
-
- All Implemented Interfaces:
ObjectBuilder<MsearchResponse<TDocument>>
- Enclosing class:
- MsearchResponse<TDocument>
public static class MsearchResponse.Builder<TDocument> extends MultiSearchResult.AbstractBuilder<TDocument,MsearchResponse.Builder<TDocument>> implements ObjectBuilder<MsearchResponse<TDocument>>
Builder forMsearchResponse
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MsearchResponse<TDocument>
build()
Builds aMsearchResponse
.protected MsearchResponse.Builder<TDocument>
self()
-
Methods inherited from class org.opensearch.client.opensearch.core.msearch.MultiSearchResult.AbstractBuilder
responses, responses, responses, tDocumentSerializer, took
-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAdd, _listAddAll, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
self
protected MsearchResponse.Builder<TDocument> self()
- Specified by:
self
in classMultiSearchResult.AbstractBuilder<TDocument,MsearchResponse.Builder<TDocument>>
-
build
public MsearchResponse<TDocument> build()
Builds aMsearchResponse
.- Specified by:
build
in interfaceObjectBuilder<TDocument>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-
-