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