Module org.elasticsearch.server
Class MappingStats
java.lang.Object
org.elasticsearch.action.admin.cluster.stats.MappingStats
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentFragment
Usage statistics about mappings usage.
-
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, EMPTY_PARAMS -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn stats about field types.Return stats about runtime field types.inthashCode()static MappingStatsCreateMappingStatsfrom the given cluster state.toString()toXContent(XContentBuilder builder, ToXContent.Params params) 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
CreateMappingStatsfrom the given cluster state. -
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
getTotalFieldCount
- Returns:
- the total number of fields (in non-system indices), or
OptionalLong.empty()if omitted (due to BwC)
-
getTotalDeduplicatedFieldCount
- Returns:
- the total number of fields (in non-system indices) accounting for deduplication, or
OptionalLong.empty()if omitted (due to BwC)
-
getTotalMappingSizeBytes
- Returns:
- the total size of all mappings (including those for system indices) accounting for deduplication and compression, or
OptionalLong.empty()if omitted (due to BwC).
-
getFieldTypeStats
Return stats about field types. -
getRuntimeFieldStats
Return stats about runtime field types. -
getSourceModeUsageCount
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
toString
-
equals
-
hashCode
public int hashCode()
-