org.elasticsearch.index.merge
Class MergeStats

java.lang.Object
  extended by org.elasticsearch.index.merge.MergeStats
All Implemented Interfaces:
Streamable, ToXContent

public class MergeStats
extends Object
implements Streamable, ToXContent


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.MapParams, ToXContent.Params
 
Field Summary
 
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
 
Constructor Summary
MergeStats()
           
 
Method Summary
 void add(long totalMerges, long totalMergeTime, long totalNumDocs, long totalSizeInBytes, long currentMerges, long currentNumDocs, long currentSizeInBytes)
           
 void add(MergeStats mergeStats)
           
 long current()
          The current number of merges executing.
 long currentNumDocs()
           
 ByteSizeValue currentSize()
           
 long currentSizeInBytes()
           
 void readFrom(StreamInput in)
           
static MergeStats readMergeStats(StreamInput in)
           
 long total()
          The total number of merges executed.
 long totalNumDocs()
           
 ByteSizeValue totalSize()
           
 long totalSizeInBytes()
           
 TimeValue totalTime()
          The total time merges have been executed.
 long totalTimeInMillis()
          The total time merges have been executed (in milliseconds).
 XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params)
           
 void writeTo(StreamOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MergeStats

public MergeStats()
Method Detail

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.