org.elasticsearch.index.search.stats
Class SearchStats.Stats

java.lang.Object
  extended by org.elasticsearch.index.search.stats.SearchStats.Stats
All Implemented Interfaces:
Streamable, ToXContent
Enclosing class:
SearchStats

public static class SearchStats.Stats
extends java.lang.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
SearchStats.Stats(long queryCount, long queryTimeInMillis, long fetchCount, long fetchTimeInMillis)
           
 
Method Summary
 void add(SearchStats.Stats stats)
           
 long fetchCount()
           
 TimeValue fetchTime()
           
 long fetchTimeInMillis()
           
 long getFetchCount()
           
 long getFetchTimeInMillis()
           
 long getQueryCount()
           
 long getQueryTimeInMillis()
           
 long queryCount()
           
 TimeValue queryTime()
           
 long queryTimeInMillis()
           
 void readFrom(StreamInput in)
           
static SearchStats.Stats readStats(StreamInput in)
           
 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

SearchStats.Stats

public SearchStats.Stats(long queryCount,
                         long queryTimeInMillis,
                         long fetchCount,
                         long fetchTimeInMillis)
Method Detail

add

public void add(SearchStats.Stats stats)

queryCount

public long queryCount()

getQueryCount

public long getQueryCount()

queryTime

public TimeValue queryTime()

queryTimeInMillis

public long queryTimeInMillis()

getQueryTimeInMillis

public long getQueryTimeInMillis()

fetchCount

public long fetchCount()

getFetchCount

public long getFetchCount()

fetchTime

public TimeValue fetchTime()

fetchTimeInMillis

public long fetchTimeInMillis()

getFetchTimeInMillis

public long getFetchTimeInMillis()

readStats

public static SearchStats.Stats readStats(StreamInput in)
                                   throws java.io.IOException
Throws:
java.io.IOException

readFrom

public void readFrom(StreamInput in)
              throws java.io.IOException
Specified by:
readFrom in interface Streamable
Throws:
java.io.IOException

writeTo

public void writeTo(StreamOutput out)
             throws java.io.IOException
Specified by:
writeTo in interface Streamable
Throws:
java.io.IOException

toXContent

public XContentBuilder toXContent(XContentBuilder builder,
                                  ToXContent.Params params)
                           throws java.io.IOException
Specified by:
toXContent in interface ToXContent
Throws:
java.io.IOException