public static final class FieldStats.Date extends FieldStats.Long
FieldStats.Date, FieldStats.Double, FieldStats.Float, FieldStats.Long, FieldStats.TextToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsmaxValue, minValueEMPTY_PARAMS| Constructor and Description |
|---|
FieldStats.Date() |
FieldStats.Date(long maxDoc,
long docCount,
long sumDocFreq,
long sumTotalTermFreq,
long minValue,
long maxValue,
FormatDateTimeFormatter dateFormatter) |
| Modifier and Type | Method and Description |
|---|---|
String |
getMaxValueAsString() |
String |
getMinValueAsString() |
void |
readFrom(StreamInput in) |
protected Long |
valueOf(String value,
String optionalFormat) |
void |
writeTo(StreamOutput out) |
appendgetDensity, getDocCount, getMaxDoc, getMaxValue, getMinValue, getSumDocFreq, getSumTotalTermFreq, match, read, toInnerXContent, toXContentpublic FieldStats.Date()
public FieldStats.Date(long maxDoc,
long docCount,
long sumDocFreq,
long sumTotalTermFreq,
long minValue,
long maxValue,
FormatDateTimeFormatter dateFormatter)
public String getMinValueAsString()
getMinValueAsString in class FieldStats.Longpublic String getMaxValueAsString()
getMaxValueAsString in class FieldStats.Longprotected Long valueOf(String value, String optionalFormat)
valueOf in class FieldStats.Longvalue - 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 StreamablereadFrom in class FieldStats.LongIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class FieldStats.LongIOExceptionCopyright © 2009–2017. All rights reserved.