Class StatsRequest.Builder
java.lang.Object
org.opensearch.client.opensearch.nodes.StatsRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<StatsRequest>
- Enclosing class:
- StatsRequest
public static class StatsRequest.Builder extends java.lang.Object implements ObjectBuilder<StatsRequest>
Builder for
StatsRequest.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.client.util.ObjectBuilder
ObjectBuilder.Constant<V> -
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description StatsRequest.BuilderaddCompletionFields(java.lang.String value)Add a value tocompletionFields(List), creating the list if needed.StatsRequest.BuilderaddFielddataFields(java.lang.String value)Add a value tofielddataFields(List), creating the list if needed.StatsRequest.BuilderaddFields(java.lang.String value)Add a value tofields(List), creating the list if needed.StatsRequest.BuilderaddIndexMetric(java.lang.String value)Add a value toindexMetric(List), creating the list if needed.StatsRequest.BuilderaddMetric(java.lang.String value)Add a value tometric(List), creating the list if needed.StatsRequest.BuilderaddTypes(java.lang.String value)Add a value totypes(List), creating the list if needed.StatsRequestbuild()Builds aStatsRequest.StatsRequest.BuildercompletionFields(java.lang.String... value)Comma-separated list or wildcard expressions of fields to include in fielddata and suggest statistics.StatsRequest.BuildercompletionFields(java.util.List<java.lang.String> value)Comma-separated list or wildcard expressions of fields to include in fielddata and suggest statistics.StatsRequest.BuilderfielddataFields(java.lang.String... value)Comma-separated list or wildcard expressions of fields to include in fielddata statistics.StatsRequest.BuilderfielddataFields(java.util.List<java.lang.String> value)Comma-separated list or wildcard expressions of fields to include in fielddata statistics.StatsRequest.Builderfields(java.lang.String... value)Comma-separated list or wildcard expressions of fields to include in the statistics.StatsRequest.Builderfields(java.util.List<java.lang.String> value)Comma-separated list or wildcard expressions of fields to include in the statistics.StatsRequest.Buildergroups(java.lang.Boolean value)Comma-separated list of search groups to include in the search statistics.StatsRequest.BuilderincludeSegmentFileSizes(java.lang.Boolean value)If true, the call reports the aggregated disk usage of each one of the Lucene index files (only applies if segment stats are requested).StatsRequest.BuilderincludeUnloadedSegments(java.lang.Boolean value)API name:include_unloaded_segmentsStatsRequest.BuilderindexMetric(java.lang.String... value)Limit the information returned for indices metric to the specific index metrics.StatsRequest.BuilderindexMetric(java.util.List<java.lang.String> value)Limit the information returned for indices metric to the specific index metrics.StatsRequest.Builderlevel(jakarta.json.JsonValue value)Indicates whether statistics are aggregated at the cluster, index, or shard level.StatsRequest.BuildermasterTimeout(jakarta.json.JsonValue value)Period to wait for a connection to the master node.StatsRequest.Buildermetric(java.lang.String... value)API name:metricStatsRequest.Buildermetric(java.util.List<java.lang.String> value)API name:metricStatsRequest.BuildernodeId(java.lang.String value)Comma-separated list of node IDs or names used to limit returned information.StatsRequest.Buildertimeout(jakarta.json.JsonValue value)Period to wait for a response.StatsRequest.Buildertypes(java.lang.String... value)A comma-separated list of document types for the indexing index metric.StatsRequest.Buildertypes(java.util.List<java.lang.String> value)A comma-separated list of document types for the indexing index metric.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
nodeId
Comma-separated list of node IDs or names used to limit returned information. API name:node_id -
metric
API name:metric -
metric
API name:metric -
addMetric
Add a value tometric(List), creating the list if needed. -
indexMetric
Limit the information returned for indices metric to the specific index metrics. It can be used only if indices (or all) metric is specified. API name:index_metric -
indexMetric
Limit the information returned for indices metric to the specific index metrics. It can be used only if indices (or all) metric is specified. API name:index_metric -
addIndexMetric
Add a value toindexMetric(List), creating the list if needed. -
completionFields
Comma-separated list or wildcard expressions of fields to include in fielddata and suggest statistics. API name:completion_fields -
completionFields
Comma-separated list or wildcard expressions of fields to include in fielddata and suggest statistics. API name:completion_fields -
addCompletionFields
Add a value tocompletionFields(List), creating the list if needed. -
fielddataFields
Comma-separated list or wildcard expressions of fields to include in fielddata statistics. API name:fielddata_fields -
fielddataFields
Comma-separated list or wildcard expressions of fields to include in fielddata statistics. API name:fielddata_fields -
addFielddataFields
Add a value tofielddataFields(List), creating the list if needed. -
fields
Comma-separated list or wildcard expressions of fields to include in the statistics. API name:fields -
fields
Comma-separated list or wildcard expressions of fields to include in the statistics. API name:fields -
addFields
Add a value tofields(List), creating the list if needed. -
groups
Comma-separated list of search groups to include in the search statistics. API name:groups -
includeSegmentFileSizes
If true, the call reports the aggregated disk usage of each one of the Lucene index files (only applies if segment stats are requested). API name:include_segment_file_sizes -
level
Indicates whether statistics are aggregated at the cluster, index, or shard level. API name:level -
masterTimeout
Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. API name:master_timeout -
timeout
Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. API name:timeout -
types
A comma-separated list of document types for the indexing index metric. API name:types -
types
A comma-separated list of document types for the indexing index metric. API name:types -
addTypes
Add a value totypes(List), creating the list if needed. -
includeUnloadedSegments
API name:include_unloaded_segments -
build
Builds aStatsRequest.- Specified by:
buildin interfaceObjectBuilder<StatsRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-