Class IndicesStatsRequestBuilder
- java.lang.Object
-
- org.elasticsearch.action.ActionRequestBuilder<Request,Response,RequestBuilder>
-
- org.elasticsearch.action.support.broadcast.BroadcastOperationRequestBuilder<IndicesStatsRequest,IndicesStatsResponse,IndicesStatsRequestBuilder>
-
- org.elasticsearch.action.admin.indices.stats.IndicesStatsRequestBuilder
-
public class IndicesStatsRequestBuilder extends BroadcastOperationRequestBuilder<IndicesStatsRequest,IndicesStatsResponse,IndicesStatsRequestBuilder>
A request to get indices level stats. Allow to enable different stats to be returned.By default, the
setDocs(boolean)
,setStore(boolean)
,setIndexing(boolean)
are enabled. Other stats can be enabled as well.All the stats to be returned can be cleared using
clear()
, at which point, specific stats can be enabled.
-
-
Field Summary
-
Fields inherited from class org.elasticsearch.action.ActionRequestBuilder
action, client, request
-
-
Constructor Summary
Constructors Constructor Description IndicesStatsRequestBuilder(ElasticsearchClient client, IndicesStatsAction action)
-
Method Summary
-
Methods inherited from class org.elasticsearch.action.support.broadcast.BroadcastOperationRequestBuilder
setIndices, setIndicesOptions
-
-
-
-
Constructor Detail
-
IndicesStatsRequestBuilder
public IndicesStatsRequestBuilder(ElasticsearchClient client, IndicesStatsAction action)
-
-
Method Detail
-
all
public IndicesStatsRequestBuilder all()
Sets all flags to return all stats.
-
clear
public IndicesStatsRequestBuilder clear()
Clears all stats.
-
setTypes
public IndicesStatsRequestBuilder setTypes(java.lang.String... types)
Document types to return stats for. Mainly affectssetIndexing(boolean)
when enabled, returning specific indexing stats for those types.
-
setGroups
public IndicesStatsRequestBuilder setGroups(java.lang.String... groups)
-
setDocs
public IndicesStatsRequestBuilder setDocs(boolean docs)
-
setStore
public IndicesStatsRequestBuilder setStore(boolean store)
-
setIndexing
public IndicesStatsRequestBuilder setIndexing(boolean indexing)
-
setGet
public IndicesStatsRequestBuilder setGet(boolean get)
-
setSearch
public IndicesStatsRequestBuilder setSearch(boolean search)
-
setMerge
public IndicesStatsRequestBuilder setMerge(boolean merge)
-
setRefresh
public IndicesStatsRequestBuilder setRefresh(boolean refresh)
-
setFlush
public IndicesStatsRequestBuilder setFlush(boolean flush)
-
setWarmer
public IndicesStatsRequestBuilder setWarmer(boolean warmer)
-
setQueryCache
public IndicesStatsRequestBuilder setQueryCache(boolean queryCache)
-
setFieldData
public IndicesStatsRequestBuilder setFieldData(boolean fieldData)
-
setFieldDataFields
public IndicesStatsRequestBuilder setFieldDataFields(java.lang.String... fields)
-
setSegments
public IndicesStatsRequestBuilder setSegments(boolean segments)
-
setCompletion
public IndicesStatsRequestBuilder setCompletion(boolean completion)
-
setCompletionFields
public IndicesStatsRequestBuilder setCompletionFields(java.lang.String... fields)
-
setTranslog
public IndicesStatsRequestBuilder setTranslog(boolean translog)
-
setRequestCache
public IndicesStatsRequestBuilder setRequestCache(boolean requestCache)
-
setRecovery
public IndicesStatsRequestBuilder setRecovery(boolean recovery)
-
setIncludeSegmentFileSizes
public IndicesStatsRequestBuilder setIncludeSegmentFileSizes(boolean includeSegmentFileSizes)
-
-