public class IndexingStats extends Object implements Streamable, ToXContent
| Modifier and Type | Class and Description |
|---|---|
static class |
IndexingStats.Stats |
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
IndexingStats() |
IndexingStats(IndexingStats.Stats totalStats,
Map<String,IndexingStats.Stats> typeStats) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(IndexingStats indexingStats) |
void |
add(IndexingStats indexingStats,
boolean includeTypes) |
void |
addTotals(IndexingStats indexingStats) |
IndexingStats.Stats |
getTotal() |
Map<String,IndexingStats.Stats> |
getTypeStats() |
void |
readFrom(StreamInput in) |
static IndexingStats |
readIndexingStats(StreamInput in) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
public IndexingStats()
public IndexingStats(IndexingStats.Stats totalStats, @Nullable Map<String,IndexingStats.Stats> typeStats)
public void add(IndexingStats indexingStats)
public void add(IndexingStats indexingStats, boolean includeTypes)
public void addTotals(IndexingStats indexingStats)
public IndexingStats.Stats getTotal()
@Nullable public Map<String,IndexingStats.Stats> getTypeStats()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionpublic static IndexingStats readIndexingStats(StreamInput in) throws IOException
IOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamableIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamableIOExceptionCopyright © 2009–2017. All rights reserved.