public class SegmentsStats extends Object implements Streamable, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_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 |
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.
|
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) |
static SegmentsStats |
readSegmentsStats(StreamInput in) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
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 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 static SegmentsStats readSegmentsStats(StreamInput in) throws IOException
IOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamableIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamableIOExceptionCopyright © 2009–2017. All rights reserved.