public class SegmentsStats extends 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 |
addFixedBitSetMemoryInBytes(long fixedBitSetMemoryInBytes) |
void |
addIndexWriterMaxMemoryInBytes(long indexWriterMaxMemoryInBytes) |
void |
addIndexWriterMemoryInBytes(long indexWriterMemoryInBytes) |
void |
addVersionMapMemoryInBytes(long versionMapMemoryInBytes) |
long |
getCount()
The the segments count.
|
ByteSizeValue |
getFixedBitSetMemory() |
long |
getFixedBitSetMemoryInBytes()
Estimation of how much the cached fixed bit sets are taking.
|
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 |
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 addIndexWriterMemoryInBytes(long indexWriterMemoryInBytes)
public void addIndexWriterMaxMemoryInBytes(long indexWriterMaxMemoryInBytes)
public void addVersionMapMemoryInBytes(long versionMapMemoryInBytes)
public void addFixedBitSetMemoryInBytes(long fixedBitSetMemoryInBytes)
public void add(SegmentsStats mergeStats)
public long getCount()
public long getMemoryInBytes()
public ByteSizeValue getMemory()
public long getIndexWriterMemoryInBytes()
public ByteSizeValue getIndexWriterMemory()
public long getIndexWriterMaxMemoryInBytes()
public ByteSizeValue getIndexWriterMaxMemory()
public long getVersionMapMemoryInBytes()
public ByteSizeValue getVersionMapMemory()
public long getFixedBitSetMemoryInBytes()
public ByteSizeValue getFixedBitSetMemory()
public static SegmentsStats readSegmentsStats(StreamInput in) throws IOException
IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
IOException
Copyright © 2009–2015. All rights reserved.