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.Params
Nested 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 TypeMethodDescriptionvoid
add
(NodeMappingStats other) boolean
long
long
long
int
hashCode()
toXContent
(XContentBuilder builder, ToXContent.Params params) void
writeTo
(StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods 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:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContent
in interfaceToXContent
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-