public class InternalCountDateHistogramFacet extends InternalDateHistogramFacet
Modifier and Type | Class and Description |
---|---|
static class |
InternalCountDateHistogramFacet.CountEntry
A histogram entry representing a single entry within the result of a histogram facet.
|
InternalFacet.ReduceContext, InternalFacet.Stream, InternalFacet.Streams
DateHistogramFacet.ComparatorType, DateHistogramFacet.Entry
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
TYPE
EMPTY_PARAMS
Constructor and Description |
---|
InternalCountDateHistogramFacet(String name,
DateHistogramFacet.ComparatorType comparatorType,
InternalCountDateHistogramFacet.CountEntry[] entries) |
Modifier and Type | Method and Description |
---|---|
List<InternalCountDateHistogramFacet.CountEntry> |
getEntries()
An ordered list of histogram facet entries.
|
Iterator<DateHistogramFacet.Entry> |
iterator() |
void |
readFrom(StreamInput in) |
static InternalCountDateHistogramFacet |
readHistogramFacet(StreamInput in) |
Facet |
reduce(InternalFacet.ReduceContext context) |
static void |
registerStreams() |
BytesReference |
streamType() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
getType
getName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public InternalCountDateHistogramFacet(String name, DateHistogramFacet.ComparatorType comparatorType, InternalCountDateHistogramFacet.CountEntry[] entries)
public static void registerStreams()
public BytesReference streamType()
streamType
in class InternalFacet
public List<InternalCountDateHistogramFacet.CountEntry> getEntries()
DateHistogramFacet
public Iterator<DateHistogramFacet.Entry> iterator()
public Facet reduce(InternalFacet.ReduceContext context)
reduce
in class InternalFacet
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
IOException
public static InternalCountDateHistogramFacet readHistogramFacet(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.