public final class CommitStats extends Objectimplements Streamable , ToXContent
ToXContent.DelegatingMapParams , ToXContent.MapParams , ToXContent.Params EMPTY_PARAMS| Constructor and Description |
|---|
CommitStats(org
|
| Modifier and Type | Method and Description |
|---|---|
long |
getGeneration()
|
int |
getNumDocs()
Returns the number of documents in the in this commit
|
Map |
getUserData()
|
void |
readFrom(StreamInput
|
static CommitStats |
readOptionalCommitStatsFrom(StreamInput
|
XContentBuilder |
toXContent(XContentBuilder
|
void |
writeTo(StreamOutput
|
public static CommitStatsreadOptionalCommitStatsFrom(StreamInput in) throws IOException
IOException
public long getGeneration()
public int getNumDocs()
public void readFrom(StreamInputin) throws IOException
readFrom in interface
Streamable
IOException
public void writeTo(StreamOutputout) throws IOException
writeTo in interface
Streamable
IOException
public XContentBuildertoXContent(XContentBuilder builder, ToXContent .Params params) throws IOException
toXContent in interface
ToXContent
IOException