Streamable
, ToXContent
, ToXContentFragment
public final class CommitStats extends java.lang.Object implements Streamable, ToXContentFragment
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor | Description |
---|---|
CommitStats(org.apache.lucene.index.SegmentInfos segmentInfos) |
Modifier and Type | Method | Description |
---|---|---|
long |
getGeneration() |
|
java.lang.String |
getId() |
base64 version of the commit id (see
SegmentInfos.getId() |
int |
getNumDocs() |
Returns the number of documents in the in this commit
|
Engine.CommitId |
getRawCommitId() |
A raw version of the commit id (see
SegmentInfos.getId() |
java.util.Map<java.lang.String,java.lang.String> |
getUserData() |
|
void |
readFrom(StreamInput in) |
Set this object's fields from a StreamInput.
|
static CommitStats |
readOptionalCommitStatsFrom(StreamInput in) |
|
java.lang.String |
syncId() |
The synced-flush id of the commit if existed.
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
|
void |
writeTo(StreamOutput out) |
Write this object's fields to a StreamOutput.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isFragment
public CommitStats(org.apache.lucene.index.SegmentInfos segmentInfos)
public static CommitStats readOptionalCommitStatsFrom(StreamInput in) throws java.io.IOException
java.io.IOException
public java.util.Map<java.lang.String,java.lang.String> getUserData()
public long getGeneration()
public java.lang.String getId()
SegmentInfos.getId()
public Engine.CommitId getRawCommitId()
SegmentInfos.getId()
public java.lang.String syncId()
public int getNumDocs()
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
java.io.IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException