org.elasticsearch.search.facet.histogram.unbounded
Class InternalCountHistogramFacet
java.lang.Object
org.elasticsearch.search.facet.histogram.InternalHistogramFacet
org.elasticsearch.search.facet.histogram.unbounded.InternalCountHistogramFacet
- All Implemented Interfaces:
- Iterable<HistogramFacet.Entry>, Streamable, ToXContent, Facet, HistogramFacet, InternalFacet
public class InternalCountHistogramFacet
- 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 |
InternalCountHistogramFacet
public InternalCountHistogramFacet(String name,
HistogramFacet.ComparatorType comparatorType,
gnu.trove.map.hash.TLongLongHashMap counts,
boolean cachedCounts)
registerStreams
public static void registerStreams()
streamType
public String streamType()
name
public String name()
- Description copied from interface:
Facet
- The "logical" name of the search facet.
getName
public String getName()
- Description copied from interface:
Facet
- The "logical" name of the search facet.
type
public String type()
- Description copied from interface:
Facet
- The type of the facet.
getType
public String getType()
- Description copied from interface:
Facet
- The type of the facet.
entries
public List<InternalCountHistogramFacet.CountEntry> entries()
- Description copied from interface:
HistogramFacet
- An ordered list of histogram facet entries.
getEntries
public List<InternalCountHistogramFacet.CountEntry> getEntries()
- Description copied from interface:
HistogramFacet
- An ordered list of histogram facet entries.
iterator
public Iterator<HistogramFacet.Entry> iterator()
reduce
public Facet reduce(String name,
List<Facet> facets)
- Specified by:
reduce
in class InternalHistogramFacet
toXContent
public XContentBuilder toXContent(XContentBuilder builder,
ToXContent.Params params)
throws IOException
- Throws:
IOException
readHistogramFacet
public static InternalCountHistogramFacet readHistogramFacet(StreamInput in)
throws IOException
- Throws:
IOException
readFrom
public void readFrom(StreamInput in)
throws IOException
- Throws:
IOException
writeTo
public void writeTo(StreamOutput out)
throws IOException
- Throws:
IOException
Copyright © 2009-2012. All Rights Reserved.