org.elasticsearch.index.search.stats
Class SearchStats.Stats
java.lang.Object
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
Constructor Summary |
SearchStats.Stats(long queryCount,
long queryTimeInMillis,
long queryCurrent,
long fetchCount,
long fetchTimeInMillis,
long fetchCurrent)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SearchStats.Stats
public SearchStats.Stats(long queryCount,
long queryTimeInMillis,
long queryCurrent,
long fetchCount,
long fetchTimeInMillis,
long fetchCurrent)
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.