public class InternalTermsStatsLongFacet extends InternalTermsStatsFacet
| Modifier and Type | Class and Description |
|---|---|
static class |
InternalTermsStatsLongFacet.LongEntry |
InternalFacet.ReduceContext, InternalFacet.Stream, InternalFacet.StreamsTermsStatsFacet.ComparatorType, TermsStatsFacet.EntryToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsTYPEEMPTY_PARAMS| Constructor and Description |
|---|
InternalTermsStatsLongFacet() |
InternalTermsStatsLongFacet(String name,
TermsStatsFacet.ComparatorType comparatorType,
int requiredSize,
Collection<InternalTermsStatsLongFacet.LongEntry> entries,
long missing) |
| Modifier and Type | Method and Description |
|---|---|
List<InternalTermsStatsLongFacet.LongEntry> |
getEntries()
The terms and counts.
|
long |
getMissingCount()
The number of docs missing a value.
|
Iterator<TermsStatsFacet.Entry> |
iterator() |
void |
readFrom(StreamInput in) |
static InternalTermsStatsLongFacet |
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, registerStreamsgetNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic InternalTermsStatsLongFacet()
public InternalTermsStatsLongFacet(String name, TermsStatsFacet.ComparatorType comparatorType, int requiredSize, Collection<InternalTermsStatsLongFacet.LongEntry> entries, long missing)
public static void registerStream()
public BytesReference streamType()
streamType in class InternalFacetpublic List<InternalTermsStatsLongFacet.LongEntry> getEntries()
TermsStatsFacetpublic Iterator<TermsStatsFacet.Entry> iterator()
public long getMissingCount()
TermsStatsFacetpublic Facet reduce(InternalFacet.ReduceContext context)
reduce in class InternalFacetpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
IOExceptionpublic static InternalTermsStatsLongFacet readTermsStatsFacet(StreamInput in) throws IOException
IOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class InternalFacetIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class InternalFacetIOExceptionCopyright © 2009–2016. All rights reserved.