Class IndicesStatsRequest.Builder
- All Implemented Interfaces:
WithJson<IndicesStatsRequest.Builder>,ObjectBuilder<IndicesStatsRequest>
- Enclosing class:
- IndicesStatsRequest
IndicesStatsRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aIndicesStatsRequest.completionFields(String value, String... values) Comma-separated list or wildcard expressions of fields to include in fielddata and suggest statistics.completionFields(List<String> list) Comma-separated list or wildcard expressions of fields to include in fielddata and suggest statistics.expandWildcards(ExpandWildcard value, ExpandWildcard... values) Type of index that wildcard patterns can match.expandWildcards(List<ExpandWildcard> list) Type of index that wildcard patterns can match.fielddataFields(String value, String... values) Comma-separated list or wildcard expressions of fields to include in fielddata statistics.fielddataFields(List<String> list) Comma-separated list or wildcard expressions of fields to include in fielddata statistics.Comma-separated list or wildcard expressions of fields to include in the statistics.Comma-separated list or wildcard expressions of fields to include in the statistics.forbidClosedIndices(Boolean value) If true, statistics are not collected from closed indices.Comma-separated list of search groups to include in the search statistics.Comma-separated list of search groups to include in the search statistics.includeSegmentFileSizes(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).includeUnloadedSegments(Boolean value) If true, the response includes information from segments that are not loaded into memory.A comma-separated list of index names; use_allor empty string to perform the operation on all indicesA comma-separated list of index names; use_allor empty string to perform the operation on all indicesIndicates whether statistics are aggregated at the cluster, indices, or shards level.Limit the information returned the specific metrics.Limit the information returned the specific metrics.protected IndicesStatsRequest.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
completionFields
Comma-separated list or wildcard expressions of fields to include in fielddata and suggest statistics.API name:
completion_fieldsAdds all elements of
listtocompletionFields. -
completionFields
Comma-separated list or wildcard expressions of fields to include in fielddata and suggest statistics.API name:
completion_fieldsAdds one or more values to
completionFields. -
expandWildcards
Type of index that wildcard patterns can match. If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. Supports comma-separated values, such asopen,hidden.API name:
expand_wildcardsAdds all elements of
listtoexpandWildcards. -
expandWildcards
public final IndicesStatsRequest.Builder expandWildcards(ExpandWildcard value, ExpandWildcard... values) Type of index that wildcard patterns can match. If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. Supports comma-separated values, such asopen,hidden.API name:
expand_wildcardsAdds one or more values to
expandWildcards. -
fielddataFields
Comma-separated list or wildcard expressions of fields to include in fielddata statistics.API name:
fielddata_fieldsAdds all elements of
listtofielddataFields. -
fielddataFields
Comma-separated list or wildcard expressions of fields to include in fielddata statistics.API name:
fielddata_fieldsAdds one or more values to
fielddataFields. -
fields
Comma-separated list or wildcard expressions of fields to include in the statistics.API name:
fieldsAdds all elements of
listtofields. -
fields
Comma-separated list or wildcard expressions of fields to include in the statistics.API name:
fieldsAdds one or more values to
fields. -
forbidClosedIndices
If true, statistics are not collected from closed indices.API name:
forbid_closed_indices -
groups
Comma-separated list of search groups to include in the search statistics.API name:
groupsAdds all elements of
listtogroups. -
groups
Comma-separated list of search groups to include in the search statistics.API name:
groupsAdds one or more values to
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 -
includeUnloadedSegments
If true, the response includes information from segments that are not loaded into memory.API name:
include_unloaded_segments -
index
A comma-separated list of index names; use_allor empty string to perform the operation on all indicesAPI name:
indexAdds all elements of
listtoindex. -
index
A comma-separated list of index names; use_allor empty string to perform the operation on all indicesAPI name:
indexAdds one or more values to
index. -
level
Indicates whether statistics are aggregated at the cluster, indices, or shards level.API name:
level -
metric
Limit the information returned the specific metrics.API name:
metricAdds all elements of
listtometric. -
metric
Limit the information returned the specific metrics.API name:
metricAdds one or more values to
metric. -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<IndicesStatsRequest.Builder>
-
build
Builds aIndicesStatsRequest.- Specified by:
buildin interfaceObjectBuilder<IndicesStatsRequest>- Throws:
NullPointerException- if some of the required fields are null.
-