Writeable, ToXContent, ToXContentFragmentpublic class SearchStats extends java.lang.Object implements Writeable, ToXContentFragment
| Modifier and Type | Class | Description |
|---|---|---|
static class |
SearchStats.Stats |
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsWriteable.Reader<V>, Writeable.Writer<V>EMPTY_PARAMS| Constructor | Description |
|---|---|
SearchStats() |
|
SearchStats(StreamInput in) |
|
SearchStats(SearchStats.Stats totalStats,
long openContexts,
java.util.Map<java.lang.String,SearchStats.Stats> groupStats) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
add(SearchStats searchStats) |
|
void |
addTotals(SearchStats searchStats) |
|
java.util.Map<java.lang.String,SearchStats.Stats> |
getGroupStats() |
|
long |
getOpenContexts() |
|
SearchStats.Stats |
getTotal() |
|
java.lang.String |
toString() |
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
|
void |
writeTo(StreamOutput out) |
Write this into the StreamOutput.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisFragmentpublic SearchStats()
public SearchStats(SearchStats.Stats totalStats, long openContexts, @Nullable java.util.Map<java.lang.String,SearchStats.Stats> groupStats)
public SearchStats(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic void add(SearchStats searchStats)
public void addTotals(SearchStats searchStats)
public SearchStats.Stats getTotal()
public long getOpenContexts()
@Nullable public java.util.Map<java.lang.String,SearchStats.Stats> getGroupStats()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContentjava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic void writeTo(StreamOutput out) throws java.io.IOException
Writeable