Package org.elasticsearch.index.engine
Class SegmentsStats
java.lang.Object
org.elasticsearch.index.engine.SegmentsStats
- All Implemented Interfaces:
Writeable,org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentFragment
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.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.common.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(long count, long memoryInBytes)voidadd(SegmentsStats mergeStats)voidaddBitsetMemoryInBytes(long bitsetMemoryInBytes)voidaddDocValuesMemoryInBytes(long docValuesMemoryInBytes)voidvoidaddIndexWriterMemoryInBytes(long indexWriterMemoryInBytes)voidaddNormsMemoryInBytes(long normsMemoryInBytes)voidaddPointsMemoryInBytes(long pointsMemoryInBytes)voidaddStoredFieldsMemoryInBytes(long storedFieldsMemoryInBytes)voidaddTermsMemoryInBytes(long termsMemoryInBytes)voidaddTermVectorsMemoryInBytes(long termVectorsMemoryInBytes)voidaddVersionMapMemoryInBytes(long versionMapMemoryInBytes)voidlongEstimation of how much the cached bit sets are taking.longgetCount()The number of segments.longEstimation of the doc values memory usage by a segment.getFiles()longEstimation of the memory usage by index writerlongReturns the max timestamp that is used to de-optimize documents with auto-generated IDs in the engine.longEstimation of the memory usage used by a segment.longEstimation of the norms memory usage by a segment.longEstimation of the points memory usage by a segment.longEstimation of the stored fields memory usage by a segment.longEstimation of the terms dictionary memory usage by a segment.longEstimation of the term vectors memory usage by a segment.longEstimation of the memory usage by version maporg.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)voidwriteTo(StreamOutput out)Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
Constructor Details
-
SegmentsStats
public SegmentsStats() -
SegmentsStats
- Throws:
IOException
-
-
Method Details
-
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) -
addFiles
-
add
-
getCount
public long getCount()The number of segments. -
getMemoryInBytes
public long getMemoryInBytes()Estimation of the memory usage used by a segment. -
getMemory
-
getTermsMemoryInBytes
public long getTermsMemoryInBytes()Estimation of the terms dictionary memory usage by a segment. -
getStoredFieldsMemoryInBytes
public long getStoredFieldsMemoryInBytes()Estimation of the stored fields memory usage by a segment. -
getTermVectorsMemoryInBytes
public long getTermVectorsMemoryInBytes()Estimation of the term vectors memory usage by a segment. -
getNormsMemoryInBytes
public long getNormsMemoryInBytes()Estimation of the norms memory usage by a segment. -
getPointsMemoryInBytes
public long getPointsMemoryInBytes()Estimation of the points memory usage by a segment. -
getDocValuesMemoryInBytes
public long getDocValuesMemoryInBytes()Estimation of the doc values memory usage by a segment. -
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
-
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 org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException- Specified by:
toXContentin interfaceorg.elasticsearch.common.xcontent.ToXContent- Throws:
IOException
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
clearFiles
public void clearFiles()
-