public static final class FieldStats.Text extends FieldStats<org.apache.lucene.util.BytesRef>
FieldStats.Date, FieldStats.Double, FieldStats.Float, FieldStats.Long, FieldStats.TextToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsmaxValue, minValueEMPTY_PARAMS| Constructor and Description |
|---|
FieldStats.Text() |
FieldStats.Text(long maxDoc,
long docCount,
long sumDocFreq,
long sumTotalTermFreq,
org.apache.lucene.util.BytesRef minValue,
org.apache.lucene.util.BytesRef 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 void |
toInnerXContent(XContentBuilder builder) |
protected org.apache.lucene.util.BytesRef |
valueOf(String value,
String optionalFormat) |
void |
writeTo(StreamOutput out) |
getDensity, getDocCount, getMaxDoc, getMaxValue, getMinValue, getSumDocFreq, getSumTotalTermFreq, match, read, toXContentpublic FieldStats.Text()
public FieldStats.Text(long maxDoc,
long docCount,
long sumDocFreq,
long sumTotalTermFreq,
org.apache.lucene.util.BytesRef minValue,
org.apache.lucene.util.BytesRef maxValue)
public String getMinValueAsString()
getMinValueAsString in class FieldStats<org.apache.lucene.util.BytesRef>public String getMaxValueAsString()
getMaxValueAsString in class FieldStats<org.apache.lucene.util.BytesRef>public void append(FieldStats stats)
FieldStatsappend in class FieldStats<org.apache.lucene.util.BytesRef>protected org.apache.lucene.util.BytesRef valueOf(String value, String optionalFormat)
valueOf in class FieldStats<org.apache.lucene.util.BytesRef>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 thrownprotected void toInnerXContent(XContentBuilder builder) throws IOException
toInnerXContent in class FieldStats<org.apache.lucene.util.BytesRef>IOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class FieldStats<org.apache.lucene.util.BytesRef>IOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class FieldStats<org.apache.lucene.util.BytesRef>IOExceptionCopyright © 2009–2017. All rights reserved.