public class GetStats extends java.lang.Object implements Streamable, ToXContentFragment
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
GetStats() |
GetStats(long existsCount,
long existsTimeInMillis,
long missingCount,
long missingTimeInMillis,
long current) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(GetStats stats) |
void |
addTotals(GetStats stats) |
long |
current() |
long |
getCount() |
long |
getExistsCount() |
TimeValue |
getExistsTime() |
long |
getExistsTimeInMillis() |
long |
getMissingCount() |
TimeValue |
getMissingTime() |
long |
getMissingTimeInMillis() |
TimeValue |
getTime() |
long |
getTimeInMillis() |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisFragmentpublic GetStats()
public GetStats(long existsCount,
long existsTimeInMillis,
long missingCount,
long missingTimeInMillis,
long current)
public void add(GetStats stats)
public void addTotals(GetStats stats)
public long getCount()
public long getTimeInMillis()
public TimeValue getTime()
public long getExistsCount()
public long getExistsTimeInMillis()
public TimeValue getExistsTime()
public long getMissingCount()
public long getMissingTimeInMillis()
public TimeValue getMissingTime()
public long current()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContentjava.io.IOExceptionpublic 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