public abstract class FieldStats<T> extends Object implements Streamable, ToXContent
| Modifier and Type | Class and Description |
|---|---|
static class |
FieldStats.Date |
static class |
FieldStats.Double |
static class |
FieldStats.Float |
static class |
FieldStats.Long |
static class |
FieldStats.Text |
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
protected T |
maxValue |
protected T |
minValue |
EMPTY_PARAMS| Modifier | Constructor and Description |
|---|---|
protected |
FieldStats() |
protected |
FieldStats(int type,
long maxDoc,
long docCount,
long sumDocFreq,
long sumTotalTermFreq) |
| Modifier and Type | Method and Description |
|---|---|
void |
append(FieldStats stats)
Merges the provided stats into this stats instance.
|
int |
getDensity() |
long |
getDocCount() |
long |
getMaxDoc() |
abstract String |
getMaxValue() |
abstract String |
getMinValue() |
long |
getSumDocFreq() |
long |
getSumTotalTermFreq() |
static FieldStats |
read(StreamInput in) |
void |
readFrom(StreamInput in) |
protected void |
toInnerXContent(XContentBuilder builder) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
protected FieldStats()
protected FieldStats(int type,
long maxDoc,
long docCount,
long sumDocFreq,
long sumTotalTermFreq)
public long getMaxDoc()
public long getDocCount()
public int getDensity()
public long getSumDocFreq()
public long getSumTotalTermFreq()
public abstract String getMinValue()
public abstract String getMaxValue()
public void append(FieldStats stats)
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionprotected void toInnerXContent(XContentBuilder builder) throws IOException
IOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamableIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamableIOExceptionpublic static FieldStats read(StreamInput in) throws IOException
IOExceptionCopyright © 2009–2016. All rights reserved.