public static class FieldStats.Date extends FieldStats<java.lang.Long>
FieldStats.Date, FieldStats.Double, FieldStats.Ip, FieldStats.Long, FieldStats.Text
Writeable.Reader<R>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
maxValue, minValue
EMPTY_PARAMS
Constructor and Description |
---|
Date(long maxDoc,
boolean isSearchable,
boolean isAggregatable,
FormatDateTimeFormatter formatter) |
Date(long maxDoc,
long docCount,
long sumDocFreq,
long sumTotalTermFreq,
boolean isSearchable,
boolean isAggregatable,
FormatDateTimeFormatter formatter) |
Date(long maxDoc,
long docCount,
long sumDocFreq,
long sumTotalTermFreq,
boolean isSearchable,
boolean isAggregatable,
FormatDateTimeFormatter formatter,
long minValue,
long maxValue) |
Modifier and Type | Method and Description |
---|---|
int |
compare(java.lang.Long o1,
java.lang.Long o2) |
java.lang.String |
getMaxValueAsString() |
java.lang.String |
getMinValueAsString() |
java.lang.Long |
valueOf(java.lang.String value,
java.lang.String fmt) |
void |
writeMinMax(StreamOutput out) |
accumulate, getDensity, getDocCount, getMaxDoc, getMaxValue, getMinValue, getSumDocFreq, getSumTotalTermFreq, isAggregatable, isSearchable, match, readFrom, toInnerXContent, toXContent, typeName, writeTo
public Date(long maxDoc, long docCount, long sumDocFreq, long sumTotalTermFreq, boolean isSearchable, boolean isAggregatable, FormatDateTimeFormatter formatter, long minValue, long maxValue)
public Date(long maxDoc, long docCount, long sumDocFreq, long sumTotalTermFreq, boolean isSearchable, boolean isAggregatable, FormatDateTimeFormatter formatter)
public Date(long maxDoc, boolean isSearchable, boolean isAggregatable, FormatDateTimeFormatter formatter)
public int compare(java.lang.Long o1, java.lang.Long o2)
compare
in class FieldStats<java.lang.Long>
public void writeMinMax(StreamOutput out) throws java.io.IOException
writeMinMax
in class FieldStats<java.lang.Long>
java.io.IOException
public java.lang.Long valueOf(java.lang.String value, java.lang.String fmt)
valueOf
in class FieldStats<java.lang.Long>
value
- The string to be parsedfmt
- 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 java.lang.String getMinValueAsString()
getMinValueAsString
in class FieldStats<java.lang.Long>
public java.lang.String getMaxValueAsString()
getMaxValueAsString
in class FieldStats<java.lang.Long>