public static class FieldStats.Long extends FieldStats<Long>
FieldStats.Date, FieldStats.Double, FieldStats.Float, FieldStats.Long, FieldStats.Text
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
maxValue, minValue
EMPTY_PARAMS
Modifier | Constructor and Description |
---|---|
|
FieldStats.Long() |
protected |
FieldStats.Long(int type,
long maxDoc,
long docCount,
long sumDocFreq,
long sumTotalTermFreq,
long minValue,
long maxValue) |
|
FieldStats.Long(long maxDoc,
long docCount,
long sumDocFreq,
long sumTotalTermFreq,
long minValue,
long maxValue) |
Modifier and Type | Method and Description |
---|---|
void |
append(FieldStats stats)
Merges the provided stats into this stats instance.
|
String |
getMaxValueAsString() |
String |
getMinValueAsString() |
void |
readFrom(StreamInput in) |
protected Long |
valueOf(String value,
String optionalFormat) |
void |
writeTo(StreamOutput out) |
getDensity, getDocCount, getMaxDoc, getMaxValue, getMinValue, getSumDocFreq, getSumTotalTermFreq, match, read, toInnerXContent, toXContent
public FieldStats.Long()
public FieldStats.Long(long maxDoc, long docCount, long sumDocFreq, long sumTotalTermFreq, long minValue, long maxValue)
protected FieldStats.Long(int type, long maxDoc, long docCount, long sumDocFreq, long sumTotalTermFreq, long minValue, long maxValue)
public String getMinValueAsString()
getMinValueAsString
in class FieldStats<Long>
public String getMaxValueAsString()
getMaxValueAsString
in class FieldStats<Long>
public void append(FieldStats stats)
FieldStats
append
in class FieldStats<Long>
protected Long valueOf(String value, String optionalFormat)
valueOf
in class FieldStats<Long>
value
- The string to be parsedoptionalFormat
- A string describing how to parse the specified value. Whether this parameter is supported
depends on the implementation. If optionalFormat is specified and the implementation
doesn't support it an UnsupportedOperationException
is thrownpublic void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class FieldStats<Long>
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class FieldStats<Long>
IOException
Copyright © 2009–2016. All rights reserved.