Class IndicesStatsRequest.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.indices.IndicesStatsRequest.Builder
-
- All Implemented Interfaces:
ObjectBuilder<IndicesStatsRequest>
- Enclosing class:
- IndicesStatsRequest
public static class IndicesStatsRequest.Builder extends ObjectBuilderBase implements ObjectBuilder<IndicesStatsRequest>
Builder forIndicesStatsRequest.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IndicesStatsRequestbuild()Builds aIndicesStatsRequest.IndicesStatsRequest.BuildercompletionFields(java.lang.String value, java.lang.String... values)A comma-separated list of fields forfielddataandsuggestindex metric (supports wildcards)IndicesStatsRequest.BuildercompletionFields(java.util.List<java.lang.String> list)A comma-separated list of fields forfielddataandsuggestindex metric (supports wildcards)IndicesStatsRequest.BuilderexpandWildcards(java.util.List<ExpandWildcard> list)Whether to expand wildcard expression to concrete indices that are open, closed or both.IndicesStatsRequest.BuilderexpandWildcards(ExpandWildcard value, ExpandWildcard... values)Whether to expand wildcard expression to concrete indices that are open, closed or both.IndicesStatsRequest.BuilderfielddataFields(java.lang.String value, java.lang.String... values)A comma-separated list of fields forfielddataindex metric (supports wildcards)IndicesStatsRequest.BuilderfielddataFields(java.util.List<java.lang.String> list)A comma-separated list of fields forfielddataindex metric (supports wildcards)IndicesStatsRequest.Builderfields(java.lang.String value, java.lang.String... values)A comma-separated list of fields forfielddataandcompletionindex metric (supports wildcards)IndicesStatsRequest.Builderfields(java.util.List<java.lang.String> list)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, java.lang.String... values)A comma-separated list of search groups forsearchindex metricIndicesStatsRequest.Buildergroups(java.util.List<java.lang.String> list)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, 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)Return stats aggregated at cluster, index or shard levelIndicesStatsRequest.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.IndicesStatsRequest.Buildertypes(java.lang.String value, java.lang.String... values)A comma-separated list of document types for theindexingindex metricIndicesStatsRequest.Buildertypes(java.util.List<java.lang.String> list)A comma-separated list of document types for theindexingindex metric-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
completionFields
public final IndicesStatsRequest.Builder completionFields(java.util.List<java.lang.String> list)
A comma-separated list of fields forfielddataandsuggestindex metric (supports wildcards)API name:
completion_fieldsAdds all elements of
listtocompletionFields.
-
completionFields
public final IndicesStatsRequest.Builder completionFields(java.lang.String value, java.lang.String... values)
A comma-separated list of fields forfielddataandsuggestindex metric (supports wildcards)API name:
completion_fieldsAdds one or more values to
completionFields.
-
expandWildcards
public final IndicesStatsRequest.Builder expandWildcards(java.util.List<ExpandWildcard> list)
Whether to expand wildcard expression to concrete indices that are open, closed or both.API name:
expand_wildcardsAdds all elements of
listtoexpandWildcards.
-
expandWildcards
public final IndicesStatsRequest.Builder expandWildcards(ExpandWildcard value, ExpandWildcard... values)
Whether to expand wildcard expression to concrete indices that are open, closed or both.API name:
expand_wildcardsAdds one or more values to
expandWildcards.
-
fielddataFields
public final IndicesStatsRequest.Builder fielddataFields(java.util.List<java.lang.String> list)
A comma-separated list of fields forfielddataindex metric (supports wildcards)API name:
fielddata_fieldsAdds all elements of
listtofielddataFields.
-
fielddataFields
public final IndicesStatsRequest.Builder fielddataFields(java.lang.String value, java.lang.String... values)
A comma-separated list of fields forfielddataindex metric (supports wildcards)API name:
fielddata_fieldsAdds one or more values to
fielddataFields.
-
fields
public final IndicesStatsRequest.Builder fields(java.util.List<java.lang.String> list)
A comma-separated list of fields forfielddataandcompletionindex metric (supports wildcards)API name:
fieldsAdds all elements of
listtofields.
-
fields
public final IndicesStatsRequest.Builder fields(java.lang.String value, java.lang.String... values)
A comma-separated list of fields forfielddataandcompletionindex metric (supports wildcards)API name:
fieldsAdds one or more values to
fields.
-
forbidClosedIndices
public final IndicesStatsRequest.Builder forbidClosedIndices(@Nullable 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 indicesAPI name:
forbid_closed_indices
-
groups
public final IndicesStatsRequest.Builder groups(java.util.List<java.lang.String> list)
A comma-separated list of search groups forsearchindex metricAPI name:
groupsAdds all elements of
listtogroups.
-
groups
public final IndicesStatsRequest.Builder groups(java.lang.String value, java.lang.String... values)
A comma-separated list of search groups forsearchindex metricAPI name:
groupsAdds one or more values to
groups.
-
includeSegmentFileSizes
public final IndicesStatsRequest.Builder includeSegmentFileSizes(@Nullable 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)API name:
include_segment_file_sizes
-
includeUnloadedSegments
public final IndicesStatsRequest.Builder includeUnloadedSegments(@Nullable java.lang.Boolean value)
If set to true segment stats will include stats for segments that are not currently loaded into memoryAPI name:
include_unloaded_segments
-
index
public final IndicesStatsRequest.Builder index(java.util.List<java.lang.String> list)
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
public final IndicesStatsRequest.Builder index(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 indicesAPI name:
indexAdds one or more values to
index.
-
level
public final IndicesStatsRequest.Builder level(@Nullable Level value)
Return stats aggregated at cluster, index or shard levelAPI name:
level
-
metric
public final IndicesStatsRequest.Builder metric(java.util.List<java.lang.String> list)
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.
-
types
public final IndicesStatsRequest.Builder types(java.util.List<java.lang.String> list)
A comma-separated list of document types for theindexingindex metricAPI name:
typesAdds all elements of
listtotypes.
-
types
public final IndicesStatsRequest.Builder types(java.lang.String value, java.lang.String... values)
A comma-separated list of document types for theindexingindex metricAPI name:
typesAdds one or more values to
types.
-
build
public IndicesStatsRequest build()
Builds aIndicesStatsRequest.- Specified by:
buildin interfaceObjectBuilder<IndicesStatsRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-