public static class SearchStats.Stats extends Object implements Streamable, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
Stats(long queryCount,
long queryTimeInMillis,
long queryCurrent,
long fetchCount,
long fetchTimeInMillis,
long fetchCurrent) |
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() |
void |
readFrom(StreamInput in) |
static SearchStats.Stats |
readStats(StreamInput in) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
public Stats(long queryCount,
long queryTimeInMillis,
long queryCurrent,
long fetchCount,
long fetchTimeInMillis,
long fetchCurrent)
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 static SearchStats.Stats readStats(StreamInput in) throws IOException
IOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamableIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamableIOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionCopyright © 2009–2016. All rights reserved.