public class SegmentsStats extends java.lang.Object implements Streamable, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
SegmentsStats() |
Modifier and Type | Method and 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 writer
|
long |
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 map
|
void |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isFragment
public void add(long count, long memoryInBytes)
public void addTermsMemoryInBytes(long termsMemoryInBytes)
public void addStoredFieldsMemoryInBytes(long storedFieldsMemoryInBytes)
public void addTermVectorsMemoryInBytes(long termVectorsMemoryInBytes)
public void addNormsMemoryInBytes(long normsMemoryInBytes)
public void addPointsMemoryInBytes(long pointsMemoryInBytes)
public void addDocValuesMemoryInBytes(long docValuesMemoryInBytes)
public void addIndexWriterMemoryInBytes(long indexWriterMemoryInBytes)
public void addVersionMapMemoryInBytes(long versionMapMemoryInBytes)
public void addBitsetMemoryInBytes(long bitsetMemoryInBytes)
public void addFileSizes(ImmutableOpenMap<java.lang.String,java.lang.Long> fileSizes)
public void add(SegmentsStats mergeStats)
public long getCount()
public long getMemoryInBytes()
public ByteSizeValue getMemory()
public long getTermsMemoryInBytes()
public ByteSizeValue getTermsMemory()
public long getStoredFieldsMemoryInBytes()
public ByteSizeValue getStoredFieldsMemory()
public long getTermVectorsMemoryInBytes()
public ByteSizeValue getTermVectorsMemory()
public long getNormsMemoryInBytes()
public ByteSizeValue getNormsMemory()
public long getPointsMemoryInBytes()
public ByteSizeValue getPointsMemory()
public long getDocValuesMemoryInBytes()
public ByteSizeValue getDocValuesMemory()
public long getIndexWriterMemoryInBytes()
public ByteSizeValue getIndexWriterMemory()
public long getVersionMapMemoryInBytes()
public ByteSizeValue getVersionMapMemory()
public long getBitsetMemoryInBytes()
public ByteSizeValue getBitsetMemory()
public ImmutableOpenMap<java.lang.String,java.lang.Long> getFileSizes()
public long getMaxUnsafeAutoIdTimestamp()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
java.io.IOException