public static class FieldStats.Long extends FieldStats<java.lang.Long>
FieldStats.Date, FieldStats.Double, FieldStats.Float, FieldStats.Ip, FieldStats.Long, FieldStats.Text
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
maxValue, minValue
EMPTY_PARAMS
Modifier | Constructor and Description |
---|---|
|
Long() |
protected |
Long(int type,
long maxDoc,
long docCount,
long sumDocFreq,
long sumTotalTermFreq,
long minValue,
long maxValue) |
|
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.
|
java.lang.String |
getMaxValueAsString() |
java.lang.String |
getMinValueAsString() |
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
java.lang.String |
stringValueOf(java.lang.Object value,
java.lang.String optionalFormat) |
protected java.lang.Long |
valueOf(java.lang.String value,
java.lang.String optionalFormat) |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
getDensity, getDocCount, getMaxDoc, getMaxValue, getMinValue, getSumDocFreq, getSumTotalTermFreq, match, read, toInnerXContent, toXContent
public Long()
public Long(long maxDoc, long docCount, long sumDocFreq, long sumTotalTermFreq, long minValue, long maxValue)
protected Long(int type, long maxDoc, long docCount, long sumDocFreq, long sumTotalTermFreq, long minValue, long maxValue)
public java.lang.String getMinValueAsString()
getMinValueAsString
in class FieldStats<java.lang.Long>
public java.lang.String getMaxValueAsString()
getMaxValueAsString
in class FieldStats<java.lang.Long>
public void append(FieldStats stats)
FieldStats
append
in class FieldStats<java.lang.Long>
protected 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 stringValueOf(java.lang.Object value, java.lang.String optionalFormat)
stringValueOf
in class FieldStats<java.lang.Long>
value
- The value to be converted to a StringoptionalFormat
- A string describing how to print 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 java.io.IOException
Streamable
readFrom
in interface Streamable
readFrom
in class FieldStats<java.lang.Long>
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in class FieldStats<java.lang.Long>
java.io.IOException