public class SearchStats extends ToXContentToBytes implements Streamable
Modifier and Type | Class and Description |
---|---|
static class |
SearchStats.Stats |
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_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.
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
buildAsBytes, buildAsBytes, toString, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isFragment
public 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 ToXContent
java.io.IOException
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
java.io.IOException