public class InternalLongTermsFacet extends InternalTermsFacet
Modifier and Type | Class and Description |
---|---|
static class |
InternalLongTermsFacet.LongEntry |
InternalFacet.ReduceContext, InternalFacet.Stream, InternalFacet.Streams
TermsFacet.ComparatorType, TermsFacet.Entry
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
TYPE
EMPTY_PARAMS
Constructor and Description |
---|
InternalLongTermsFacet(String name,
TermsFacet.ComparatorType comparatorType,
int requiredSize,
Collection<InternalLongTermsFacet.LongEntry> entries,
long missing,
long total) |
Modifier and Type | Method and Description |
---|---|
List<InternalLongTermsFacet.LongEntry> |
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 InternalLongTermsFacet |
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, registerStreams
getName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public InternalLongTermsFacet(String name, TermsFacet.ComparatorType comparatorType, int requiredSize, Collection<InternalLongTermsFacet.LongEntry> entries, long missing, long total)
public static void registerStream()
public BytesReference streamType()
streamType
in class InternalFacet
public List<InternalLongTermsFacet.LongEntry> getEntries()
TermsFacet
public Iterator<TermsFacet.Entry> iterator()
public long getMissingCount()
TermsFacet
public long getTotalCount()
TermsFacet
public long getOtherCount()
TermsFacet
public Facet reduce(InternalFacet.ReduceContext context)
reduce
in class InternalFacet
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
IOException
public static InternalLongTermsFacet readTermsFacet(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.