Class IndicesStatsRequest.Builder
java.lang.Object
co.elastic.clients.elasticsearch.indices.IndicesStatsRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<IndicesStatsRequest>
- Enclosing class:
- IndicesStatsRequest
public static class IndicesStatsRequest.Builder extends java.lang.Object implements ObjectBuilder<IndicesStatsRequest>
Builder for
IndicesStatsRequest.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description IndicesStatsRequest.BuilderaddCompletionFields(java.lang.String value)Add a value tocompletionFields(List), creating the list if needed.IndicesStatsRequest.BuilderaddExpandWildcards(ExpandWildcardOptions value)Add a value toexpandWildcards(List), creating the list if needed.IndicesStatsRequest.BuilderaddFielddataFields(java.lang.String value)Add a value tofielddataFields(List), creating the list if needed.IndicesStatsRequest.BuilderaddFields(java.lang.String value)Add a value tofields(List), creating the list if needed.IndicesStatsRequest.BuilderaddGroups(java.lang.String value)Add a value togroups(List), creating the list if needed.IndicesStatsRequest.BuilderaddIndex(java.lang.String value)Add a value toindex(List), creating the list if needed.IndicesStatsRequest.BuilderaddMetric(java.lang.String value)Add a value tometric(List), creating the list if needed.IndicesStatsRequest.BuilderaddTypes(java.lang.String value)Add a value totypes(List), creating the list if needed.IndicesStatsRequestbuild()Builds aIndicesStatsRequest.IndicesStatsRequest.BuildercompletionFields(java.lang.String... value)A comma-separated list of fields forfielddataandsuggestindex metric (supports wildcards)IndicesStatsRequest.BuildercompletionFields(java.util.List<java.lang.String> value)A comma-separated list of fields forfielddataandsuggestindex metric (supports wildcards)IndicesStatsRequest.BuilderexpandWildcards(ExpandWildcardOptions... value)Whether to expand wildcard expression to concrete indices that are open, closed or both.IndicesStatsRequest.BuilderexpandWildcards(java.util.List<ExpandWildcardOptions> value)Whether to expand wildcard expression to concrete indices that are open, closed or both.IndicesStatsRequest.BuilderfielddataFields(java.lang.String... value)A comma-separated list of fields forfielddataindex metric (supports wildcards)IndicesStatsRequest.BuilderfielddataFields(java.util.List<java.lang.String> value)A comma-separated list of fields forfielddataindex metric (supports wildcards)IndicesStatsRequest.Builderfields(java.lang.String... value)A comma-separated list of fields forfielddataandcompletionindex metric (supports wildcards)IndicesStatsRequest.Builderfields(java.util.List<java.lang.String> value)A comma-separated list of fields forfielddataandcompletionindex metric (supports wildcards)IndicesStatsRequest.BuilderforbidClosedIndices(java.lang.Boolean value)If set to false stats will also collected from closed indices if explicitly specified or if expand_wildcards expands to closed indicesIndicesStatsRequest.Buildergroups(java.lang.String... value)A comma-separated list of search groups forsearchindex metricIndicesStatsRequest.Buildergroups(java.util.List<java.lang.String> value)A comma-separated list of search groups forsearchindex metricIndicesStatsRequest.BuilderincludeSegmentFileSizes(java.lang.Boolean value)Whether to report the aggregated disk usage of each one of the Lucene index files (only applies if segment stats are requested)IndicesStatsRequest.BuilderincludeUnloadedSegments(java.lang.Boolean value)If set to true segment stats will include stats for segments that are not currently loaded into memoryIndicesStatsRequest.Builderindex(java.lang.String... value)A comma-separated list of index names; use_allor empty string to perform the operation on all indicesIndicesStatsRequest.Builderindex(java.util.List<java.lang.String> value)A comma-separated list of index names; use_allor empty string to perform the operation on all indicesIndicesStatsRequest.Builderlevel(Level value)Return stats aggregated at cluster, index or shard levelIndicesStatsRequest.Buildermetric(java.lang.String... value)Limit the information returned the specific metrics.IndicesStatsRequest.Buildermetric(java.util.List<java.lang.String> value)Limit the information returned the specific metrics.IndicesStatsRequest.Buildertypes(java.lang.String... value)A comma-separated list of document types for theindexingindex metricIndicesStatsRequest.Buildertypes(java.util.List<java.lang.String> value)A comma-separated list of document types for theindexingindex metricMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
metric
Limit the information returned the specific metrics.API name:
metric -
metric
Limit the information returned the specific metrics.API name:
metric -
addMetric
Add a value tometric(List), creating the list if needed. -
index
A comma-separated list of index names; use_allor empty string to perform the operation on all indicesAPI name:
index -
index
A comma-separated list of index names; use_allor empty string to perform the operation on all indicesAPI name:
index -
addIndex
Add a value toindex(List), creating the list if needed. -
completionFields
public IndicesStatsRequest.Builder completionFields(@Nullable java.util.List<java.lang.String> value)A comma-separated list of fields forfielddataandsuggestindex metric (supports wildcards)API name:
completion_fields -
completionFields
A comma-separated list of fields forfielddataandsuggestindex metric (supports wildcards)API name:
completion_fields -
addCompletionFields
Add a value tocompletionFields(List), creating the list if needed. -
expandWildcards
public IndicesStatsRequest.Builder expandWildcards(@Nullable java.util.List<ExpandWildcardOptions> value)Whether to expand wildcard expression to concrete indices that are open, closed or both.API name:
expand_wildcards -
expandWildcards
Whether to expand wildcard expression to concrete indices that are open, closed or both.API name:
expand_wildcards -
addExpandWildcards
Add a value toexpandWildcards(List), creating the list if needed. -
fielddataFields
public IndicesStatsRequest.Builder fielddataFields(@Nullable java.util.List<java.lang.String> value)A comma-separated list of fields forfielddataindex metric (supports wildcards)API name:
fielddata_fields -
fielddataFields
A comma-separated list of fields forfielddataindex metric (supports wildcards)API name:
fielddata_fields -
addFielddataFields
Add a value tofielddataFields(List), creating the list if needed. -
fields
A comma-separated list of fields forfielddataandcompletionindex metric (supports wildcards)API name:
fields -
fields
A comma-separated list of fields forfielddataandcompletionindex metric (supports wildcards)API name:
fields -
addFields
Add a value tofields(List), creating the list if needed. -
forbidClosedIndices
If set to false stats will also collected from closed indices if explicitly specified or if expand_wildcards expands to closed indicesAPI name:
forbid_closed_indices -
groups
A comma-separated list of search groups forsearchindex metricAPI name:
groups -
groups
A comma-separated list of search groups forsearchindex metricAPI name:
groups -
addGroups
Add a value togroups(List), creating the list if needed. -
includeSegmentFileSizes
Whether to report 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 set to true segment stats will include stats for segments that are not currently loaded into memoryAPI name:
include_unloaded_segments -
level
Return stats aggregated at cluster, index or shard levelAPI name:
level -
types
A comma-separated list of document types for theindexingindex metricAPI name:
types -
types
A comma-separated list of document types for theindexingindex metricAPI name:
types -
addTypes
Add a value totypes(List), creating the list if needed. -
build
Builds aIndicesStatsRequest.- Specified by:
buildin interfaceObjectBuilder<IndicesStatsRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-