org.elasticsearch.index.merge
Class MergeStats
java.lang.Object
org.elasticsearch.index.merge.MergeStats
- All Implemented Interfaces:
- Streamable, ToXContent
public class MergeStats
- extends Object
- implements Streamable, ToXContent
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MergeStats
public MergeStats()
add
public void add(long totalMerges,
long totalMergeTime,
long totalNumDocs,
long totalSizeInBytes,
long currentMerges,
long currentNumDocs,
long currentSizeInBytes)
add
public void add(MergeStats mergeStats)
total
public long total()
- The total number of merges executed.
totalTimeInMillis
public long totalTimeInMillis()
- The total time merges have been executed (in milliseconds).
totalTime
public TimeValue totalTime()
- The total time merges have been executed.
totalNumDocs
public long totalNumDocs()
totalSizeInBytes
public long totalSizeInBytes()
totalSize
public ByteSizeValue totalSize()
current
public long current()
- The current number of merges executing.
currentNumDocs
public long currentNumDocs()
currentSizeInBytes
public long currentSizeInBytes()
currentSize
public ByteSizeValue currentSize()
readMergeStats
public static MergeStats readMergeStats(StreamInput in)
throws IOException
- Throws:
IOException
toXContent
public XContentBuilder toXContent(XContentBuilder builder,
ToXContent.Params params)
throws IOException
- Specified by:
toXContent
in interface ToXContent
- Throws:
IOException
readFrom
public void readFrom(StreamInput in)
throws IOException
- Specified by:
readFrom
in interface Streamable
- Throws:
IOException
writeTo
public void writeTo(StreamOutput out)
throws IOException
- Specified by:
writeTo
in interface Streamable
- Throws:
IOException
Copyright © 2009-2012. All Rights Reserved.