public final class CommitStats extends Object implements Streamable, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_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
IOException
public long getGeneration()
public int getNumDocs()
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
IOException
Copyright © 2009–2016. All rights reserved.