public class DocsStats extends java.lang.Object implements Streamable, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
DocsStats() |
DocsStats(long count,
long deleted) |
Modifier and Type | Method and Description |
---|---|
void |
add(DocsStats docsStats) |
long |
getCount() |
long |
getDeleted() |
static DocsStats |
readDocStats(StreamInput in) |
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.
|
public DocsStats()
public DocsStats(long count, long deleted)
public void add(DocsStats docsStats)
public long getCount()
public long getDeleted()
public static DocsStats readDocStats(StreamInput in) throws java.io.IOException
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
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException