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 java.lang.Object
- implements Streamable, ToXContent
Constructor Summary |
SearchStats.Stats(long queryCount,
long queryTimeInMillis,
long fetchCount,
long fetchTimeInMillis)
|
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 fetchCount,
long fetchTimeInMillis)
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