public final class CommitStats extends Object implements Streamable, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| コンストラクタと説明 |
|---|
CommitStats(org.apache.lucene.index.SegmentInfos segmentInfos) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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 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 インタフェース内 StreamableIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo インタフェース内 StreamableIOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent インタフェース内 ToXContentIOExceptionCopyright © 2009–2016. All rights reserved.