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 |
addIndexWriterMaxMemoryInBytes(long indexWriterMaxMemoryInBytes) |
void |
addIndexWriterMemoryInBytes(long indexWriterMemoryInBytes) |
void |
addNormsMemoryInBytes(long normsMemoryInBytes) |
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 |
getIndexWriterMaxMemory() |
long |
getIndexWriterMaxMemoryInBytes()
Maximum memory index writer may use before it must write buffered documents to a new segment.
|
ByteSizeValue |
getIndexWriterMemory() |
long |
getIndexWriterMemoryInBytes()
Estimation of the memory usage by index writer
|
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 |
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.
|
static SegmentsStats |
readSegmentsStats(StreamInput in) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
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 addDocValuesMemoryInBytes(long docValuesMemoryInBytes)
public void addIndexWriterMemoryInBytes(long indexWriterMemoryInBytes)
public void addIndexWriterMaxMemoryInBytes(long indexWriterMaxMemoryInBytes)
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 getDocValuesMemoryInBytes()
public ByteSizeValue getDocValuesMemory()
public long getIndexWriterMemoryInBytes()
public ByteSizeValue getIndexWriterMemory()
public long getIndexWriterMaxMemoryInBytes()
public ByteSizeValue getIndexWriterMaxMemory()
public long getVersionMapMemoryInBytes()
public ByteSizeValue getVersionMapMemory()
public long getBitsetMemoryInBytes()
public ByteSizeValue getBitsetMemory()
public ImmutableOpenMap<java.lang.String,java.lang.Long> getFileSizes()
public static SegmentsStats readSegmentsStats(StreamInput in) throws java.io.IOException
java.io.IOException
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