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() |
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
IOExceptionpublic static CommitStats readOptionalCommitStatsFrom(StreamInput in) throws IOException
IOExceptionpublic long getGeneration()
public String getId()
SegmentInfos.getId()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–2017. All rights reserved.