Module org.elasticsearch.server
Class VersionStats
java.lang.Object
org.elasticsearch.action.admin.cluster.stats.VersionStats
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentFragment
VersionStats calculates statistics for index creation versions mapped to the number of
indices, primary shards, and size of primary shards on disk. This is used from
ClusterStatsIndices and exposed as part of the "/_cluster/stats" API.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()static VersionStatsof(Metadata metadata, List<ClusterStatsNodeResponse> nodeResponses) toString()toXContent(XContentBuilder builder, ToXContent.Params params) Set<org.elasticsearch.action.admin.cluster.stats.VersionStats.SingleVersionStats>voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Method Details
-
of
-
versionStats
public Set<org.elasticsearch.action.admin.cluster.stats.VersionStats.SingleVersionStats> versionStats() -
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
hashCode
public int hashCode() -
equals
-
toString
-