java.lang.Object
org.elasticsearch.index.engine.SegmentsStats
- All Implemented Interfaces:
Writeable
,ToXContent
,ToXContentFragment
-
Nested Class Summary
Nested ClassesNested 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
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(long count) void
add
(SegmentsStats mergeStats) void
addBitsetMemoryInBytes
(long bitsetMemoryInBytes) void
addFiles
(Map<String, SegmentsStats.FileStats> newFiles) void
addIndexWriterMemoryInBytes
(long indexWriterMemoryInBytes) void
addVersionMapMemoryInBytes
(long versionMapMemoryInBytes) void
boolean
long
Estimation of how much the cached bit sets are taking.long
getCount()
The number of segments.getFiles()
Returns a mapping of file extension to statistics about files of that type.long
Estimation of the memory usage by index writerlong
Returns the max timestamp that is used to de-optimize documents with auto-generated IDs in the engine.long
Estimation of the memory usage by version mapint
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
-
Constructor Details
-
SegmentsStats
public SegmentsStats() -
SegmentsStats
- Throws:
IOException
-
-
Method Details
-
add
public void add(long count) -
addIndexWriterMemoryInBytes
public void addIndexWriterMemoryInBytes(long indexWriterMemoryInBytes) -
addVersionMapMemoryInBytes
public void addVersionMapMemoryInBytes(long versionMapMemoryInBytes) -
addBitsetMemoryInBytes
public void addBitsetMemoryInBytes(long bitsetMemoryInBytes) -
addFiles
-
add
-
getCount
public long getCount()The number of segments. -
getIndexWriterMemoryInBytes
public long getIndexWriterMemoryInBytes()Estimation of the memory usage by index writer -
getIndexWriterMemory
-
getVersionMapMemoryInBytes
public long getVersionMapMemoryInBytes()Estimation of the memory usage by version map -
getVersionMapMemory
-
getBitsetMemoryInBytes
public long getBitsetMemoryInBytes()Estimation of how much the cached bit sets are taking. (which nested and p/c rely on) -
getBitsetMemory
-
getFiles
Returns a mapping of file extension to statistics about files of that type. Note: This should only be used by tests. -
getMaxUnsafeAutoIdTimestamp
public long getMaxUnsafeAutoIdTimestamp()Returns the max timestamp that is used to de-optimize documents with auto-generated IDs in the engine. This is used to ensure we don't add duplicate documents when we assume an append only case based on auto-generated IDs -
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContent
in interfaceToXContent
- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-
clearFiles
public void clearFiles()
-