Writeable
, ToXContent
, ToXContentFragment
public static class SearchStats.Stats extends java.lang.Object implements Writeable, ToXContentFragment
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Writeable.Reader<V>, Writeable.Writer<V>
EMPTY_PARAMS
Constructor | 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) |
Modifier and Type | Method | 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() |
|
static SearchStats.Stats |
readStats(StreamInput in) |
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
|
void |
writeTo(StreamOutput out) |
Write this into the StreamOutput.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isFragment
public 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 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.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Writeable
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException