Class RankEvalQuery.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.core.rank_eval.RankEvalQuery.Builder
-
- All Implemented Interfaces:
ObjectBuilder<RankEvalQuery>
- Enclosing class:
- RankEvalQuery
public static class RankEvalQuery.Builder extends ObjectBuilderBase implements ObjectBuilder<RankEvalQuery>
Builder forRankEvalQuery
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RankEvalQuery
build()
Builds aRankEvalQuery
.RankEvalQuery.Builder
query(java.util.function.Function<Query.Builder,ObjectBuilder<Query>> fn)
Required - API name:query
RankEvalQuery.Builder
query(Query value)
Required - API name:query
RankEvalQuery.Builder
size(java.lang.Integer value)
API name:size
-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAdd, _listAddAll, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
query
public final RankEvalQuery.Builder query(Query value)
Required - API name:query
-
query
public final RankEvalQuery.Builder query(java.util.function.Function<Query.Builder,ObjectBuilder<Query>> fn)
Required - API name:query
-
size
public final RankEvalQuery.Builder size(@Nullable java.lang.Integer value)
API name:size
-
build
public RankEvalQuery build()
Builds aRankEvalQuery
.- Specified by:
build
in interfaceObjectBuilder<RankEvalQuery>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-
-