public static class FieldStats.Long extends FieldStats<java.lang.Long>
FieldStats.Date, FieldStats.Double, FieldStats.GeoPoint, FieldStats.Ip, FieldStats.Long, FieldStats.Text
Writeable.Reader<V>, Writeable.Writer<V>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
maxValue, minValue
EMPTY_PARAMS
Constructor and Description |
---|
Long(long maxDoc,
long docCount,
long sumDocFreq,
long sumTotalTermFreq,
boolean isSearchable,
boolean isAggregatable) |
Long(long maxDoc,
long docCount,
long sumDocFreq,
long sumTotalTermFreq,
boolean isSearchable,
boolean isAggregatable,
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 optionalFormat) |
void |
writeMinMax(StreamOutput out) |
accumulate, equals, getDensity, getDisplayType, getDocCount, getMaxDoc, getMaxValue, getMinValue, getSumDocFreq, getSumTotalTermFreq, hashCode, hasMinMax, isAggregatable, isSearchable, match, readFrom, toInnerXContent, toXContent, updateMinMax, writeTo
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
isFragment
public Long(long maxDoc, long docCount, long sumDocFreq, long sumTotalTermFreq, boolean isSearchable, boolean isAggregatable)
public Long(long maxDoc, long docCount, long sumDocFreq, long sumTotalTermFreq, boolean isSearchable, boolean isAggregatable, long minValue, long maxValue)
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 optionalFormat)
valueOf
in class FieldStats<java.lang.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 java.lang.String getMinValueAsString()
getMinValueAsString
in class FieldStats<java.lang.Long>
public java.lang.String getMaxValueAsString()
getMaxValueAsString
in class FieldStats<java.lang.Long>