public class InternalDoubleTermsFacet extends InternalTermsFacet
| Modifier and Type | Class and Description |
|---|---|
static class |
InternalDoubleTermsFacet.DoubleEntry |
InternalFacet.ReduceContext, InternalFacet.Stream, InternalFacet.StreamsTermsFacet.ComparatorType, TermsFacet.EntryToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsTYPEEMPTY_PARAMS| Constructor and Description |
|---|
InternalDoubleTermsFacet(String name,
TermsFacet.ComparatorType comparatorType,
int requiredSize,
Collection<InternalDoubleTermsFacet.DoubleEntry> entries,
long missing,
long total) |
| Modifier and Type | Method and Description |
|---|---|
List<InternalDoubleTermsFacet.DoubleEntry> |
getEntries()
The terms and counts.
|
long |
getMissingCount()
The number of docs missing a value.
|
long |
getOtherCount()
The count of terms other than the one provided by the entries.
|
long |
getTotalCount()
The total count of terms.
|
Iterator<TermsFacet.Entry> |
iterator() |
void |
readFrom(StreamInput in) |
static InternalDoubleTermsFacet |
readTermsFacet(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 InternalDoubleTermsFacet(String name, TermsFacet.ComparatorType comparatorType, int requiredSize, Collection<InternalDoubleTermsFacet.DoubleEntry> entries, long missing, long total)
public static void registerStream()
public BytesReference streamType()
streamType in class InternalFacetpublic List<InternalDoubleTermsFacet.DoubleEntry> getEntries()
TermsFacetpublic Iterator<TermsFacet.Entry> iterator()
public long getMissingCount()
TermsFacetpublic long getTotalCount()
TermsFacetpublic long getOtherCount()
TermsFacetpublic Facet reduce(InternalFacet.ReduceContext context)
reduce in class InternalFacetpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
IOExceptionpublic static InternalDoubleTermsFacet readTermsFacet(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.