public final class CommitStats extends Object implements Streamable, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
CommitStats(org.apache.lucene.index.SegmentInfos segmentInfos) |
| Modifier and Type | Method and Description |
|---|---|
long |
getGeneration() |
int |
getNumDocs()
Returns the number of documents in the in this commit
|
Map<String,String> |
getUserData() |
void |
readFrom(StreamInput in) |
static CommitStats |
readOptionalCommitStatsFrom(StreamInput in) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
public CommitStats(org.apache.lucene.index.SegmentInfos segmentInfos)
public static CommitStats readOptionalCommitStatsFrom(StreamInput in) throws IOException
IOExceptionpublic long getGeneration()
public int getNumDocs()
public void readFrom(StreamInput in) throws IOException
readFrom in interface StreamableIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamableIOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionCopyright © 2009–2016. All rights reserved.