Class IndicesStatsRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<IndicesStatsRequest>
- Enclosing class:
- IndicesStatsRequest
public static class IndicesStatsRequest.Builder extends ObjectBuilderBase implements ObjectBuilder<IndicesStatsRequest>
IndicesStatsRequest.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description IndicesStatsRequestbuild()Builds aIndicesStatsRequest.IndicesStatsRequest.BuildercompletionFields(java.lang.String value, java.lang.String... values)Comma-separated list or wildcard expressions of fields to include in fielddata and suggest statistics.IndicesStatsRequest.BuildercompletionFields(java.util.List<java.lang.String> list)Comma-separated list or wildcard expressions of fields to include in fielddata and suggest statistics.IndicesStatsRequest.BuilderexpandWildcards(ExpandWildcard value, ExpandWildcard... values)Type of index that wildcard patterns can match.IndicesStatsRequest.BuilderexpandWildcards(java.util.List<ExpandWildcard> list)Type of index that wildcard patterns can match.IndicesStatsRequest.BuilderfielddataFields(java.lang.String value, java.lang.String... values)Comma-separated list or wildcard expressions of fields to include in fielddata statistics.IndicesStatsRequest.BuilderfielddataFields(java.util.List<java.lang.String> list)Comma-separated list or wildcard expressions of fields to include in fielddata statistics.IndicesStatsRequest.Builderfields(java.lang.String value, java.lang.String... values)Comma-separated list or wildcard expressions of fields to include in the statistics.IndicesStatsRequest.Builderfields(java.util.List<java.lang.String> list)Comma-separated list or wildcard expressions of fields to include in the statistics.IndicesStatsRequest.BuilderforbidClosedIndices(java.lang.Boolean value)If true, statistics are not collected from closed indices.IndicesStatsRequest.Buildergroups(java.lang.String value, java.lang.String... values)Comma-separated list of search groups to include in the search statistics.IndicesStatsRequest.Buildergroups(java.util.List<java.lang.String> list)Comma-separated list of search groups to include in the search statistics.IndicesStatsRequest.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).IndicesStatsRequest.BuilderincludeUnloadedSegments(java.lang.Boolean value)If true, the response includes information from segments that are not loaded into memory.IndicesStatsRequest.Builderindex(java.lang.String value, java.lang.String... values)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> list)A comma-separated list of index names; use_allor empty string to perform the operation on all indicesIndicesStatsRequest.Builderlevel(Level value)Indicates whether statistics are aggregated at the cluster, index, or shard level.IndicesStatsRequest.Buildermetric(java.lang.String value, java.lang.String... values)Limit the information returned the specific metrics.IndicesStatsRequest.Buildermetric(java.util.List<java.lang.String> list)Limit the information returned the specific metrics.Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
public final IndicesStatsRequest.Builder completionFields(java.lang.String value, java.lang.String... values)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
public final IndicesStatsRequest.Builder fielddataFields(java.lang.String value, java.lang.String... values)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
public final IndicesStatsRequest.Builder fields(java.lang.String value, java.lang.String... values)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
public final IndicesStatsRequest.Builder groups(java.lang.String value, java.lang.String... values)Comma-separated list of search groups to include in the search statistics.API name:
groupsAdds one or more values to
groups. -
includeSegmentFileSizes
public final IndicesStatsRequest.Builder includeSegmentFileSizes(@Nullable 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).API name:
include_segment_file_sizes -
includeUnloadedSegments
public final IndicesStatsRequest.Builder includeUnloadedSegments(@Nullable java.lang.Boolean value)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, index, or shard level.API name:
level -
metric
Limit the information returned the specific metrics.API name:
metricAdds all elements of
listtometric. -
metric
public final IndicesStatsRequest.Builder metric(java.lang.String value, java.lang.String... 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:
java.lang.NullPointerException- if some of the required fields are null.
-