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.Builder
addCompletionFields(java.lang.String value)
Add a value tocompletionFields(List)
, creating the list if needed.StatsRequest.Builder
addFielddataFields(java.lang.String value)
Add a value tofielddataFields(List)
, creating the list if needed.StatsRequest.Builder
addFields(java.lang.String value)
Add a value tofields(List)
, creating the list if needed.StatsRequest.Builder
addIndexMetric(java.lang.String value)
Add a value toindexMetric(List)
, creating the list if needed.StatsRequest.Builder
addMetric(java.lang.String value)
Add a value tometric(List)
, creating the list if needed.StatsRequest.Builder
addNodeId(java.lang.String value)
Add a value tonodeId(List)
, creating the list if needed.StatsRequest.Builder
addTypes(java.lang.String value)
Add a value totypes(List)
, creating the list if needed.StatsRequest
build()
Builds aStatsRequest
.StatsRequest.Builder
completionFields(java.lang.String... value)
Comma-separated list or wildcard expressions of fields to include in fielddata and suggest statistics.StatsRequest.Builder
completionFields(java.util.List<java.lang.String> value)
Comma-separated list or wildcard expressions of fields to include in fielddata and suggest statistics.StatsRequest.Builder
fielddataFields(java.lang.String... value)
Comma-separated list or wildcard expressions of fields to include in fielddata statistics.StatsRequest.Builder
fielddataFields(java.util.List<java.lang.String> value)
Comma-separated list or wildcard expressions of fields to include in fielddata statistics.StatsRequest.Builder
fields(java.lang.String... value)
Comma-separated list or wildcard expressions of fields to include in the statistics.StatsRequest.Builder
fields(java.util.List<java.lang.String> value)
Comma-separated list or wildcard expressions of fields to include in the statistics.StatsRequest.Builder
groups(java.lang.Boolean value)
Comma-separated list of search groups to include in the search statistics.StatsRequest.Builder
includeSegmentFileSizes(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.Builder
includeUnloadedSegments(java.lang.Boolean value)
If set to true segment stats will include stats for segments that are not currently loaded into memoryStatsRequest.Builder
indexMetric(java.lang.String... value)
Limit the information returned for indices metric to the specific index metrics.StatsRequest.Builder
indexMetric(java.util.List<java.lang.String> value)
Limit the information returned for indices metric to the specific index metrics.StatsRequest.Builder
level(Level value)
Indicates whether statistics are aggregated at the cluster, index, or shard level.StatsRequest.Builder
masterTimeout(java.lang.String value)
Period to wait for a connection to the master node.StatsRequest.Builder
metric(java.lang.String... value)
Limit the information returned to the specified metricsStatsRequest.Builder
metric(java.util.List<java.lang.String> value)
Limit the information returned to the specified metricsStatsRequest.Builder
nodeId(java.lang.String... value)
Comma-separated list of node IDs or names used to limit returned information.StatsRequest.Builder
nodeId(java.util.List<java.lang.String> value)
Comma-separated list of node IDs or names used to limit returned information.StatsRequest.Builder
timeout(java.lang.String value)
Period to wait for a response.StatsRequest.Builder
types(java.lang.String... value)
A comma-separated list of document types for the indexing index metric.StatsRequest.Builder
types(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:
build
in interfaceObjectBuilder<StatsRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-