public class IndexingStats extends Object implements Streamable, ToXContent
Modifier and Type | Class and Description |
---|---|
static class |
IndexingStats.Stats |
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_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 ToXContent
IOException
public static IndexingStats readIndexingStats(StreamInput in) throws IOException
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
IOException
Copyright © 2009–2016. All rights reserved.