public class SearchStats extends Object implements Streamable, ToXContent
| 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,
Map<String,SearchStats.Stats> groupStats) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(SearchStats searchStats) |
void |
add(SearchStats searchStats,
boolean includeTypes) |
void |
addTotals(SearchStats searchStats) |
Map<String,SearchStats.Stats> |
getGroupStats() |
long |
getOpenContexts() |
SearchStats.Stats |
getTotal() |
void |
readFrom(StreamInput in) |
static SearchStats |
readSearchStats(StreamInput in) |
String |
toString() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
public SearchStats()
public SearchStats(SearchStats.Stats totalStats, long openContexts, @Nullable Map<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 Map<String,SearchStats.Stats> getGroupStats()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionpublic static SearchStats readSearchStats(StreamInput in) throws IOException
IOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamableIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamableIOExceptionCopyright © 2009–2017. All rights reserved.