Package org.elasticsearch.index.engine
Class SegmentsStats
- java.lang.Object
-
- org.elasticsearch.index.engine.SegmentsStats
-
- All Implemented Interfaces:
Streamable
,ToXContent
,ToXContentFragment
public class SegmentsStats extends java.lang.Object implements Streamable, ToXContentFragment
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
-
Field Summary
-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Constructor Summary
Constructors Constructor Description SegmentsStats()
-
Method Summary
Modifier and Type Method Description void
add(long count, long memoryInBytes)
void
add(SegmentsStats mergeStats)
void
addBitsetMemoryInBytes(long bitsetMemoryInBytes)
void
addDocValuesMemoryInBytes(long docValuesMemoryInBytes)
void
addFileSizes(ImmutableOpenMap<java.lang.String,java.lang.Long> fileSizes)
void
addIndexWriterMemoryInBytes(long indexWriterMemoryInBytes)
void
addNormsMemoryInBytes(long normsMemoryInBytes)
void
addPointsMemoryInBytes(long pointsMemoryInBytes)
void
addStoredFieldsMemoryInBytes(long storedFieldsMemoryInBytes)
void
addTermsMemoryInBytes(long termsMemoryInBytes)
void
addTermVectorsMemoryInBytes(long termVectorsMemoryInBytes)
void
addVersionMapMemoryInBytes(long versionMapMemoryInBytes)
ByteSizeValue
getBitsetMemory()
long
getBitsetMemoryInBytes()
Estimation of how much the cached bit sets are taking.long
getCount()
The number of segments.ByteSizeValue
getDocValuesMemory()
long
getDocValuesMemoryInBytes()
Estimation of the doc values memory usage by a segment.ImmutableOpenMap<java.lang.String,java.lang.Long>
getFileSizes()
ByteSizeValue
getIndexWriterMemory()
long
getIndexWriterMemoryInBytes()
Estimation of the memory usage by index writerlong
getMaxUnsafeAutoIdTimestamp()
Returns the max timestamp that is used to de-optimize documents with auto-generated IDs in the engine.ByteSizeValue
getMemory()
long
getMemoryInBytes()
Estimation of the memory usage used by a segment.ByteSizeValue
getNormsMemory()
long
getNormsMemoryInBytes()
Estimation of the norms memory usage by a segment.ByteSizeValue
getPointsMemory()
long
getPointsMemoryInBytes()
Estimation of the points memory usage by a segment.ByteSizeValue
getStoredFieldsMemory()
long
getStoredFieldsMemoryInBytes()
Estimation of the stored fields memory usage by a segment.ByteSizeValue
getTermsMemory()
long
getTermsMemoryInBytes()
Estimation of the terms dictionary memory usage by a segment.ByteSizeValue
getTermVectorsMemory()
long
getTermVectorsMemoryInBytes()
Estimation of the term vectors memory usage by a segment.ByteSizeValue
getVersionMapMemory()
long
getVersionMapMemoryInBytes()
Estimation of the memory usage by version mapvoid
readFrom(StreamInput in)
Set this object's fields from a StreamInput.XContentBuilder
toXContent(XContentBuilder builder, ToXContent.Params params)
void
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
-
-
-
Method Detail
-
add
public void add(long count, long memoryInBytes)
-
addTermsMemoryInBytes
public void addTermsMemoryInBytes(long termsMemoryInBytes)
-
addStoredFieldsMemoryInBytes
public void addStoredFieldsMemoryInBytes(long storedFieldsMemoryInBytes)
-
addTermVectorsMemoryInBytes
public void addTermVectorsMemoryInBytes(long termVectorsMemoryInBytes)
-
addNormsMemoryInBytes
public void addNormsMemoryInBytes(long normsMemoryInBytes)
-
addPointsMemoryInBytes
public void addPointsMemoryInBytes(long pointsMemoryInBytes)
-
addDocValuesMemoryInBytes
public void addDocValuesMemoryInBytes(long docValuesMemoryInBytes)
-
addIndexWriterMemoryInBytes
public void addIndexWriterMemoryInBytes(long indexWriterMemoryInBytes)
-
addVersionMapMemoryInBytes
public void addVersionMapMemoryInBytes(long versionMapMemoryInBytes)
-
addBitsetMemoryInBytes
public void addBitsetMemoryInBytes(long bitsetMemoryInBytes)
-
addFileSizes
public void addFileSizes(ImmutableOpenMap<java.lang.String,java.lang.Long> fileSizes)
-
add
public void add(SegmentsStats mergeStats)
-
getCount
public long getCount()
The number of segments.
-
getMemoryInBytes
public long getMemoryInBytes()
Estimation of the memory usage used by a segment.
-
getMemory
public ByteSizeValue getMemory()
-
getTermsMemoryInBytes
public long getTermsMemoryInBytes()
Estimation of the terms dictionary memory usage by a segment.
-
getTermsMemory
public ByteSizeValue getTermsMemory()
-
getStoredFieldsMemoryInBytes
public long getStoredFieldsMemoryInBytes()
Estimation of the stored fields memory usage by a segment.
-
getStoredFieldsMemory
public ByteSizeValue getStoredFieldsMemory()
-
getTermVectorsMemoryInBytes
public long getTermVectorsMemoryInBytes()
Estimation of the term vectors memory usage by a segment.
-
getTermVectorsMemory
public ByteSizeValue getTermVectorsMemory()
-
getNormsMemoryInBytes
public long getNormsMemoryInBytes()
Estimation of the norms memory usage by a segment.
-
getNormsMemory
public ByteSizeValue getNormsMemory()
-
getPointsMemoryInBytes
public long getPointsMemoryInBytes()
Estimation of the points memory usage by a segment.
-
getPointsMemory
public ByteSizeValue getPointsMemory()
-
getDocValuesMemoryInBytes
public long getDocValuesMemoryInBytes()
Estimation of the doc values memory usage by a segment.
-
getDocValuesMemory
public ByteSizeValue getDocValuesMemory()
-
getIndexWriterMemoryInBytes
public long getIndexWriterMemoryInBytes()
Estimation of the memory usage by index writer
-
getIndexWriterMemory
public ByteSizeValue getIndexWriterMemory()
-
getVersionMapMemoryInBytes
public long getVersionMapMemoryInBytes()
Estimation of the memory usage by version map
-
getVersionMapMemory
public ByteSizeValue getVersionMapMemory()
-
getBitsetMemoryInBytes
public long getBitsetMemoryInBytes()
Estimation of how much the cached bit sets are taking. (which nested and p/c rely on)
-
getBitsetMemory
public ByteSizeValue getBitsetMemory()
-
getFileSizes
public ImmutableOpenMap<java.lang.String,java.lang.Long> getFileSizes()
-
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 java.io.IOException
- Specified by:
toXContent
in interfaceToXContent
- Throws:
java.io.IOException
-
readFrom
public void readFrom(StreamInput in) throws java.io.IOException
Description copied from interface:Streamable
Set this object's fields from a StreamInput.- Specified by:
readFrom
in interfaceStreamable
- Throws:
java.io.IOException
-
writeTo
public void writeTo(StreamOutput out) throws java.io.IOException
Description copied from interface:Streamable
Write this object's fields to a StreamOutput.- Specified by:
writeTo
in interfaceStreamable
- Throws:
java.io.IOException
-
-