Class KnnStatsRequest.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder<KnnStatsRequest.Builder>
org.opensearch.client.opensearch.knn.KnnStatsRequest.Builder
- All Implemented Interfaces:
CopyableBuilder<KnnStatsRequest.Builder,,KnnStatsRequest> MutableBuilder<KnnStatsRequest.Builder,,KnnStatsRequest> ObjectBuilder<KnnStatsRequest>
- Enclosing class:
KnnStatsRequest
public static class KnnStatsRequest.Builder
extends RequestBase.AbstractBuilder<KnnStatsRequest.Builder>
implements CopyableBuilder<KnnStatsRequest.Builder,KnnStatsRequest>
Builder for
KnnStatsRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aKnnStatsRequest.copy()Create a new builderCopyableBuilderthat is a copy of this one.final KnnStatsRequest.BuilderA comma-separated list of node IDs or names to limit the returned information; use_localto return information from the node you're connecting to, leave empty to get information from all nodes.final KnnStatsRequest.BuilderA comma-separated list of node IDs or names to limit the returned information; use_localto return information from the node you're connecting to, leave empty to get information from all nodes.protected KnnStatsRequest.Builderself()final KnnStatsRequest.Builderstat(List<KnnStatName> list) A comma-separated list of stats to retrieve; use_allor empty string to retrieve all stats.final KnnStatsRequest.Builderstat(KnnStatName value, KnnStatName... values) A comma-separated list of stats to retrieve; use_allor empty string to retrieve all stats.final KnnStatsRequest.BuilderOperation timeout.final KnnStatsRequest.BuilderOperation timeout.Methods inherited from class org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder
errorTrace, humanMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<KnnStatsRequest.Builder,KnnStatsRequest> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classRequestBase.AbstractBuilder<KnnStatsRequest.Builder>
-
nodeId
A comma-separated list of node IDs or names to limit the returned information; use_localto return information from the node you're connecting to, leave empty to get information from all nodes.API name:
node_idAdds all elements of
listtonodeId. -
nodeId
A comma-separated list of node IDs or names to limit the returned information; use_localto return information from the node you're connecting to, leave empty to get information from all nodes.API name:
node_idAdds one or more values to
nodeId. -
stat
A comma-separated list of stats to retrieve; use_allor empty string to retrieve all stats.API name:
statAdds all elements of
listtostat. -
stat
A comma-separated list of stats to retrieve; use_allor empty string to retrieve all stats.API name:
statAdds one or more values to
stat. -
timeout
Operation timeout.API name:
timeout -
timeout
@Nonnull public final KnnStatsRequest.Builder timeout(Function<Time.Builder, ObjectBuilder<Time>> fn) Operation timeout.API name:
timeout -
build
Builds aKnnStatsRequest.- Specified by:
buildin interfaceObjectBuilder<KnnStatsRequest>- Throws:
NullPointerException- if some of the required fields are null.
-