Class IndicesStatsRequest
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportRequest
org.elasticsearch.action.ActionRequest
org.elasticsearch.action.support.broadcast.BroadcastRequest<IndicesStatsRequest>
org.elasticsearch.action.admin.indices.stats.IndicesStatsRequest
- All Implemented Interfaces:
- IndicesRequest,- IndicesRequest.Replaceable,- Writeable,- org.elasticsearch.core.RefCounted,- TaskAwareRequest
A request to get indices level stats. Allow to enable different stats to be returned.
 
By default, all statistics are enabled.
 All the stats to be returned can be cleared using clear(), at which point, specific
 stats can be enabled.
- 
Nested Class SummaryNested classes/interfaces inherited from class org.elasticsearch.transport.TransportRequestTransportRequest.EmptyNested classes/interfaces inherited from interface org.elasticsearch.action.IndicesRequestIndicesRequest.ReplaceableNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.WriteableWriteable.Reader<V>, Writeable.Writer<V>
- 
Field SummaryFields inherited from class org.elasticsearch.action.support.broadcast.BroadcastRequestindices
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionall()Sets all flags to return all stats.clear()Clears all stats.booleancompletion(boolean completion)String[]completionFields(String... completionDataFields)Returns the task object that should be used to keep track of the processing of the request.booleandocs()docs(boolean docs)booleanfieldData(boolean fieldData)String[]fieldDataFields(String... fieldDataFields)flags()Returns the underlying stats flags.flags(CommonStatsFlags flags)Sets the underlying stats flags.booleanflush()flush(boolean flush)booleanget()get(boolean get)String[]groups()Sets specific search group stats to retrieve the stats for.booleanDetermines whether the request should be applied to data streams.booleanincludeSegmentFileSizes(boolean includeSegmentFileSizes)includeUnloadedSegments(boolean includeUnloadedSegments)booleanindexing()indexing(boolean indexing)booleanmerge()merge(boolean merge)booleanqueryCache(boolean queryCache)booleanrecovery()recovery(boolean recovery)booleanrefresh()refresh(boolean refresh)booleanrequestCache(boolean requestCache)booleansearch()search(boolean search)booleansegments()segments(boolean segments)booleanstore()store(boolean store)booleantranslog()translog(boolean translog)String[]types()Document types to return stats for.Document types to return stats for.booleanwarmer()warmer(boolean warmer)voidwriteTo(StreamOutput out)Write this into the StreamOutput.Methods inherited from class org.elasticsearch.action.support.broadcast.BroadcastRequestindices, indices, indicesOptions, indicesOptions, timeout, timeout, validateMethods inherited from class org.elasticsearch.action.ActionRequestgetShouldStoreResultMethods inherited from class org.elasticsearch.transport.TransportRequestgetParentTask, setParentTask, toStringMethods inherited from class org.elasticsearch.transport.TransportMessagedecRef, incRef, remoteAddress, remoteAddress, tryIncRefMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.action.IndicesRequestallowsRemoteIndicesMethods inherited from interface org.elasticsearch.tasks.TaskAwareRequestgetDescription, setParentTask
- 
Constructor Details- 
IndicesStatsRequestpublic IndicesStatsRequest()
- 
IndicesStatsRequest- Throws:
- IOException
 
 
- 
- 
Method Details- 
allSets all flags to return all stats.
- 
clearClears all stats.
- 
flagsReturns the underlying stats flags.
- 
flagsSets the underlying stats flags.
- 
typesDocument types to return stats for. Mainly affectsindexing(boolean)when enabled, returning specific indexing stats for those types.
- 
typesDocument types to return stats for. Mainly affectsindexing(boolean)when enabled, returning specific indexing stats for those types.
- 
groupsSets specific search group stats to retrieve the stats for. Mainly affects search when enabled.
- 
groups
- 
docs
- 
docspublic boolean docs()
- 
store
- 
storepublic boolean store()
- 
indexing
- 
indexingpublic boolean indexing()
- 
get
- 
getpublic boolean get()
- 
search
- 
searchpublic boolean search()
- 
merge
- 
mergepublic boolean merge()
- 
refresh
- 
refreshpublic boolean refresh()
- 
flush
- 
flushpublic boolean flush()
- 
warmer
- 
warmerpublic boolean warmer()
- 
queryCache
- 
queryCachepublic boolean queryCache()
- 
fieldData
- 
fieldDatapublic boolean fieldData()
- 
segments
- 
segmentspublic boolean segments()
- 
fieldDataFields
- 
fieldDataFields
- 
completion
- 
completionpublic boolean completion()
- 
completionFields
- 
completionFields
- 
translog
- 
translogpublic boolean translog()
- 
requestCache
- 
requestCachepublic boolean requestCache()
- 
recovery
- 
recoverypublic boolean recovery()
- 
includeSegmentFileSizespublic boolean includeSegmentFileSizes()
- 
includeSegmentFileSizes
- 
includeUnloadedSegments
- 
writeToDescription copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
- writeToin interface- Writeable
- Overrides:
- writeToin class- BroadcastRequest<IndicesStatsRequest>
- Throws:
- IOException
 
- 
includeDataStreamspublic boolean includeDataStreams()Description copied from interface:IndicesRequestDetermines whether the request should be applied to data streams. Whenfalse, none of the names or wildcard expressions inIndicesRequest.indices()should be applied to or expanded to any data streams. All layers involved in the request's fulfillment including security, name resolution, etc., should respect this flag.- Specified by:
- includeDataStreamsin interface- IndicesRequest
- Overrides:
- includeDataStreamsin class- BroadcastRequest<IndicesStatsRequest>
 
- 
createTaskpublic Task createTask(long id, String type, String action, TaskId parentTaskId, Map<String,String> headers)Description copied from interface:TaskAwareRequestReturns the task object that should be used to keep track of the processing of the request.
 
-