java.lang.Object
org.elasticsearch.index.mapper.NodeMappingStats
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentFragment
Node stats for mappings, useful for estimating the overhead of
MappingLookup on data nodes.
Should be used at node or index level, and not at shard level, since the mappings may be shared across the shards of an index.-
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
FieldsFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionNodeMappingStats(long totalCount, long totalEstimatedOverhead, long totalSegments, long totalSegmentFields) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(NodeMappingStats other) booleanlonglonglonginthashCode()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, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Field Details
-
SEGMENT_LEVEL_FIELDS_STATS
-
-
Constructor Details
-
NodeMappingStats
public NodeMappingStats() -
NodeMappingStats
- Throws:
IOException
-
NodeMappingStats
public NodeMappingStats(long totalCount, long totalEstimatedOverhead, long totalSegments, long totalSegmentFields)
-
-
Method Details
-
add
-
getTotalCount
public long getTotalCount() -
getTotalEstimatedOverhead
-
getTotalSegments
public long getTotalSegments() -
getTotalSegmentFields
public long getTotalSegmentFields() -
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-