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() |
String |
getId()
base64 version of the commit id (see
SegmentInfos.getId() |
int |
getNumDocs()
Returns the number of documents in the in this commit
|
Map<String,String> |
getUserData() |
static CommitStats |
readCommitStatsFrom(StreamInput in) |
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 readCommitStatsFrom(StreamInput in) throws IOException
IOException
public static CommitStats readOptionalCommitStatsFrom(StreamInput in) throws IOException
IOException
public long getGeneration()
public String getId()
SegmentInfos.getId()
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.