org.elasticsearch.search.facet.histogram.bounded
Class InternalBoundedFullHistogramFacet
java.lang.Object
org.elasticsearch.search.facet.histogram.InternalHistogramFacet
org.elasticsearch.search.facet.histogram.bounded.InternalBoundedFullHistogramFacet
- All Implemented Interfaces:
- java.lang.Iterable<HistogramFacet.Entry>, Streamable, ToXContent, Facet, HistogramFacet, InternalFacet
public class InternalBoundedFullHistogramFacet
- extends InternalHistogramFacet
Fields inherited from interface org.elasticsearch.search.facet.histogram.HistogramFacet |
TYPE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InternalBoundedFullHistogramFacet
public InternalBoundedFullHistogramFacet(java.lang.String name,
HistogramFacet.ComparatorType comparatorType,
long interval,
long offset,
int size,
java.lang.Object[] entries,
boolean cachedEntries)
registerStreams
public static void registerStreams()
streamType
public java.lang.String streamType()
name
public java.lang.String name()
- Description copied from interface:
Facet
- The "logical" name of the search facet.
getName
public java.lang.String getName()
- Description copied from interface:
Facet
- The "logical" name of the search facet.
type
public java.lang.String type()
- Description copied from interface:
Facet
- The type of the facet.
getType
public java.lang.String getType()
- Description copied from interface:
Facet
- The type of the facet.
entries
public java.util.List<InternalBoundedFullHistogramFacet.FullEntry> entries()
- Description copied from interface:
HistogramFacet
- An ordered list of histogram facet entries.
getEntries
public java.util.List<InternalBoundedFullHistogramFacet.FullEntry> getEntries()
- Description copied from interface:
HistogramFacet
- An ordered list of histogram facet entries.
iterator
public java.util.Iterator<HistogramFacet.Entry> iterator()
reduce
public Facet reduce(java.lang.String name,
java.util.List<Facet> facets)
- Specified by:
reduce
in class InternalHistogramFacet
toXContent
public XContentBuilder toXContent(XContentBuilder builder,
ToXContent.Params params)
throws java.io.IOException
- Throws:
java.io.IOException
readHistogramFacet
public static InternalBoundedFullHistogramFacet readHistogramFacet(StreamInput in)
throws java.io.IOException
- Throws:
java.io.IOException
readFrom
public void readFrom(StreamInput in)
throws java.io.IOException
- Throws:
java.io.IOException
writeTo
public void writeTo(StreamOutput out)
throws java.io.IOException
- Throws:
java.io.IOException