Class StatsRequest.Builder
java.lang.Object
co.elastic.clients.elasticsearch.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.-
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.BuilderaddNodeId(java.lang.String value)Add a value tonodeId(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)If set to true segment stats will include stats for segments that are not currently loaded into memoryStatsRequest.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(Level value)Indicates whether statistics are aggregated at the cluster, index, or shard level.StatsRequest.BuildermasterTimeout(java.lang.String value)Period to wait for a connection to the master node.StatsRequest.Buildermetric(java.lang.String... value)Limit the information returned to the specified metricsStatsRequest.Buildermetric(java.util.List<java.lang.String> value)Limit the information returned to the specified metricsStatsRequest.BuildernodeId(java.lang.String... value)Comma-separated list of node IDs or names used to limit returned information.StatsRequest.BuildernodeId(java.util.List<java.lang.String> value)Comma-separated list of node IDs or names used to limit returned information.StatsRequest.Buildertimeout(java.lang.String 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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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 -
nodeId
Comma-separated list of node IDs or names used to limit returned information.API name:
node_id -
addNodeId
Add a value tonodeId(List), creating the list if needed. -
metric
Limit the information returned to the specified metricsAPI name:
metric -
metric
Limit the information returned to the specified metricsAPI 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
If set to true segment stats will include stats for segments that are not currently loaded into memoryAPI name:
include_unloaded_segments -
build
Builds aStatsRequest.- Specified by:
buildin interfaceObjectBuilder<StatsRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-