Class SearchProfile.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.core.search.SearchProfile.Builder
-
- All Implemented Interfaces:
ObjectBuilder<SearchProfile>
- Enclosing class:
- SearchProfile
public static class SearchProfile.Builder extends ObjectBuilderBase implements ObjectBuilder<SearchProfile>
Builder forSearchProfile
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchProfile
build()
Builds aSearchProfile
.SearchProfile.Builder
collector(java.util.function.Function<Collector.Builder,ObjectBuilder<Collector>> fn)
Required - API name:collector
SearchProfile.Builder
collector(java.util.List<Collector> list)
Required - API name:collector
SearchProfile.Builder
collector(Collector value, Collector... values)
Required - API name:collector
SearchProfile.Builder
query(java.util.function.Function<QueryProfile.Builder,ObjectBuilder<QueryProfile>> fn)
Required - API name:query
SearchProfile.Builder
query(java.util.List<QueryProfile> list)
Required - API name:query
SearchProfile.Builder
query(QueryProfile value, QueryProfile... values)
Required - API name:query
SearchProfile.Builder
rewriteTime(long value)
Required - API name:rewrite_time
-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAdd, _listAddAll, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
collector
public final SearchProfile.Builder collector(java.util.List<Collector> list)
Required - API name:collector
Adds all elements of
list
tocollector
.
-
collector
public final SearchProfile.Builder collector(Collector value, Collector... values)
Required - API name:collector
Adds one or more values to
collector
.
-
collector
public final SearchProfile.Builder collector(java.util.function.Function<Collector.Builder,ObjectBuilder<Collector>> fn)
Required - API name:collector
Adds a value to
collector
using a builder lambda.
-
query
public final SearchProfile.Builder query(java.util.List<QueryProfile> list)
Required - API name:query
Adds all elements of
list
toquery
.
-
query
public final SearchProfile.Builder query(QueryProfile value, QueryProfile... values)
Required - API name:query
Adds one or more values to
query
.
-
query
public final SearchProfile.Builder query(java.util.function.Function<QueryProfile.Builder,ObjectBuilder<QueryProfile>> fn)
Required - API name:query
Adds a value to
query
using a builder lambda.
-
rewriteTime
public final SearchProfile.Builder rewriteTime(long value)
Required - API name:rewrite_time
-
build
public SearchProfile build()
Builds aSearchProfile
.- Specified by:
build
in interfaceObjectBuilder<SearchProfile>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-
-