public class InternalTermsStatsDoubleFacet extends InternalTermsStatsFacet
Modifier and Type | Class and Description |
---|---|
static class |
InternalTermsStatsDoubleFacet.DoubleEntry |
InternalFacet.ReduceContext, InternalFacet.Stream, InternalFacet.Streams
TermsStatsFacet.ComparatorType, TermsStatsFacet.Entry
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
TYPE
EMPTY_PARAMS
Constructor and Description |
---|
InternalTermsStatsDoubleFacet() |
InternalTermsStatsDoubleFacet(String name,
TermsStatsFacet.ComparatorType comparatorType,
int requiredSize,
Collection<InternalTermsStatsDoubleFacet.DoubleEntry> entries,
long missing) |
Modifier and Type | Method and Description |
---|---|
List<InternalTermsStatsDoubleFacet.DoubleEntry> |
getEntries()
The terms and counts.
|
long |
getMissingCount()
The number of docs missing a value.
|
Iterator<TermsStatsFacet.Entry> |
iterator() |
void |
readFrom(StreamInput in) |
static InternalTermsStatsDoubleFacet |
readTermsStatsFacet(StreamInput in) |
Facet |
reduce(InternalFacet.ReduceContext context) |
static void |
registerStream() |
BytesReference |
streamType() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
getType, registerStreams
getName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public InternalTermsStatsDoubleFacet()
public InternalTermsStatsDoubleFacet(String name, TermsStatsFacet.ComparatorType comparatorType, int requiredSize, Collection<InternalTermsStatsDoubleFacet.DoubleEntry> entries, long missing)
public static void registerStream()
public BytesReference streamType()
streamType
in class InternalFacet
public List<InternalTermsStatsDoubleFacet.DoubleEntry> getEntries()
TermsStatsFacet
public Iterator<TermsStatsFacet.Entry> iterator()
public long getMissingCount()
TermsStatsFacet
public Facet reduce(InternalFacet.ReduceContext context)
reduce
in class InternalFacet
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
IOException
public static InternalTermsStatsDoubleFacet readTermsStatsFacet(StreamInput in) throws IOException
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class InternalFacet
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class InternalFacet
IOException
Copyright © 2009–2015. All rights reserved.