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 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 queryCurrent, long fetchCount, long fetchTimeInMillis, long fetchCurrent)
           
 
Method Summary
 void add(SearchStats.Stats stats)
           
 long fetchCount()
           
 long fetchCurrent()
           
 TimeValue fetchTime()
           
 long fetchTimeInMillis()
           
 long getFetchCount()
           
 long getFetchCurrent()
           
 long getFetchTimeInMillis()
           
 long getQueryCount()
           
 long getQueryCurrent()
           
 long getQueryTimeInMillis()
           
 long queryCount()
           
 long queryCurrent()
           
 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 queryCurrent,
                         long fetchCount,
                         long fetchTimeInMillis,
                         long fetchCurrent)
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()

queryCurrent

public long queryCurrent()

getQueryCurrent

public long getQueryCurrent()

fetchCount

public long fetchCount()

getFetchCount

public long getFetchCount()

fetchTime

public TimeValue fetchTime()

fetchTimeInMillis

public long fetchTimeInMillis()

getFetchTimeInMillis

public long getFetchTimeInMillis()

fetchCurrent

public long fetchCurrent()

getFetchCurrent

public long getFetchCurrent()

readStats

public static SearchStats.Stats readStats(StreamInput in)
                                   throws IOException
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

toXContent

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


Copyright © 2009-2012. All Rights Reserved.