public class SearchStats extends java.lang.Object implements Streamable, ToXContentFragment
| Modifier and Type | Class and Description |
|---|---|
static class |
SearchStats.Stats |
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
SearchStats() |
SearchStats(SearchStats.Stats totalStats,
long openContexts,
java.util.Map<java.lang.String,SearchStats.Stats> groupStats) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(SearchStats searchStats) |
void |
add(SearchStats searchStats,
boolean includeTypes) |
void |
addTotals(SearchStats searchStats) |
java.util.Map<java.lang.String,SearchStats.Stats> |
getGroupStats() |
long |
getOpenContexts() |
SearchStats.Stats |
getTotal() |
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
java.lang.String |
toString() |
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, wait, wait, waitisFragmentpublic SearchStats()
public SearchStats(SearchStats.Stats totalStats, long openContexts, @Nullable java.util.Map<java.lang.String,SearchStats.Stats> groupStats)
public void add(SearchStats searchStats)
public void add(SearchStats searchStats, boolean includeTypes)
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 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.IOException