public final class CommitStats extends java.lang.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() |
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
|
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) |
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 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