Class IndicesStatsRequest.Builder
- All Implemented Interfaces:
CopyableBuilder<IndicesStatsRequest.Builder,,IndicesStatsRequest> MutableBuilder<IndicesStatsRequest.Builder,,IndicesStatsRequest> ObjectBuilder<IndicesStatsRequest>
- Enclosing class:
IndicesStatsRequest
IndicesStatsRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aIndicesStatsRequest.completionFields(String value, String... values) A comma-separated list or wildcard expressions of fields to include in field data and suggest statistics.completionFields(List<String> list) A comma-separated list or wildcard expressions of fields to include in field data and suggest statistics.copy()Create a new builderCopyableBuilderthat is a copy of this one.expandWildcards(List<ExpandWildcard> list) Type of index that wildcard patterns can match.expandWildcards(ExpandWildcard value, ExpandWildcard... values) Type of index that wildcard patterns can match.fielddataFields(String value, String... values) A comma-separated list or wildcard expressions of fields to include in field data statistics.fielddataFields(List<String> list) A comma-separated list or wildcard expressions of fields to include in field data statistics.A comma-separated list or wildcard expressions of fields to include in the statistics.A comma-separated list or wildcard expressions of fields to include in the statistics.forbidClosedIndices(Boolean value) Iftrue, statistics are not collected from closed indexes.A comma-separated list of search groups to include in the search statistics.A comma-separated list of search groups to include in the search statistics.includeSegmentFileSizes(Boolean value) Iftrue, 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) Iftrue, 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 indexesA comma-separated list of index names; use_allor empty string to perform the operation on all indexesIndicates whether statistics are aggregated at the cluster, index, or shard level.metric(List<IndicesStatsMetric> list) Limit the information returned the specific metrics.metric(IndicesStatsMetric value, IndicesStatsMetric... values) Limit the information returned the specific metrics.protected IndicesStatsRequest.Builderself()Methods inherited from class org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder
errorTrace, humanMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<IndicesStatsRequest.Builder,IndicesStatsRequest> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classRequestBase.AbstractBuilder<IndicesStatsRequest.Builder>
-
completionFields
A comma-separated list or wildcard expressions of fields to include in field data and suggest statistics.API name:
completion_fieldsAdds all elements of
listtocompletionFields. -
completionFields
A comma-separated list or wildcard expressions of fields to include in field data 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
@Nonnull 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
A comma-separated list or wildcard expressions of fields to include in field data statistics.API name:
fielddata_fieldsAdds all elements of
listtofielddataFields. -
fielddataFields
A comma-separated list or wildcard expressions of fields to include in field data statistics.API name:
fielddata_fieldsAdds one or more values to
fielddataFields. -
fields
A comma-separated list or wildcard expressions of fields to include in the statistics.API name:
fieldsAdds all elements of
listtofields. -
fields
A comma-separated list or wildcard expressions of fields to include in the statistics.API name:
fieldsAdds one or more values to
fields. -
forbidClosedIndices
Iftrue, statistics are not collected from closed indexes.API name:
forbid_closed_indices -
groups
A comma-separated list of search groups to include in the search statistics.API name:
groupsAdds all elements of
listtogroups. -
groups
A comma-separated list of search groups to include in the search statistics.API name:
groupsAdds one or more values to
groups. -
includeSegmentFileSizes
Iftrue, 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
Iftrue, 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 indexesAPI name:
indexAdds all elements of
listtoindex. -
index
A comma-separated list of index names; use_allor empty string to perform the operation on all indexesAPI name:
indexAdds one or more values to
index. -
level
Indicates whether statistics are aggregated at the cluster, index, or shard level.API name:
level -
metric
Limit the information returned the specific metrics.API name:
metricAdds all elements of
listtometric. -
metric
@Nonnull public final IndicesStatsRequest.Builder metric(IndicesStatsMetric value, IndicesStatsMetric... values) Limit the information returned the specific metrics.API name:
metricAdds one or more values to
metric. -
build
Builds aIndicesStatsRequest.- Specified by:
buildin interfaceObjectBuilder<IndicesStatsRequest>- Throws:
NullPointerException- if some of the required fields are null.
-