public static class SearchStats.Stats extends java.lang.Object implements Streamable, ToXContentFragment
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
Stats(long queryCount,
long queryTimeInMillis,
long queryCurrent,
long fetchCount,
long fetchTimeInMillis,
long fetchCurrent,
long scrollCount,
long scrollTimeInMillis,
long scrollCurrent,
long suggestCount,
long suggestTimeInMillis,
long suggestCurrent) |
Stats(SearchStats.Stats stats) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(SearchStats.Stats stats) |
long |
getFetchCount() |
long |
getFetchCurrent() |
TimeValue |
getFetchTime() |
long |
getFetchTimeInMillis() |
long |
getQueryCount() |
long |
getQueryCurrent() |
TimeValue |
getQueryTime() |
long |
getQueryTimeInMillis() |
long |
getScrollCount() |
long |
getScrollCurrent() |
TimeValue |
getScrollTime() |
long |
getScrollTimeInMillis() |
long |
getSuggestCount() |
long |
getSuggestCurrent() |
TimeValue |
getSuggestTime() |
long |
getSuggestTimeInMillis() |
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
static SearchStats.Stats |
readStats(StreamInput in) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisFragmentpublic Stats(long queryCount,
long queryTimeInMillis,
long queryCurrent,
long fetchCount,
long fetchTimeInMillis,
long fetchCurrent,
long scrollCount,
long scrollTimeInMillis,
long scrollCurrent,
long suggestCount,
long suggestTimeInMillis,
long suggestCurrent)
public Stats(SearchStats.Stats stats)
public void add(SearchStats.Stats stats)
public long getQueryCount()
public TimeValue getQueryTime()
public long getQueryTimeInMillis()
public long getQueryCurrent()
public long getFetchCount()
public TimeValue getFetchTime()
public long getFetchTimeInMillis()
public long getFetchCurrent()
public long getScrollCount()
public TimeValue getScrollTime()
public long getScrollTimeInMillis()
public long getScrollCurrent()
public long getSuggestCount()
public long getSuggestTimeInMillis()
public TimeValue getSuggestTime()
public long getSuggestCurrent()
public static SearchStats.Stats readStats(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface Streamablejava.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface Streamablejava.io.IOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContentjava.io.IOException