org.elasticsearch.search.facet.histogram.bounded
Class InternalBoundedFullHistogramFacet

java.lang.Object
  extended by org.elasticsearch.search.facet.histogram.InternalHistogramFacet
      extended by org.elasticsearch.search.facet.histogram.bounded.InternalBoundedFullHistogramFacet
All Implemented Interfaces:
Iterable<HistogramFacet.Entry>, Streamable, ToXContent, Facet, HistogramFacet, InternalFacet

public class InternalBoundedFullHistogramFacet
extends InternalHistogramFacet


Nested Class Summary
static class InternalBoundedFullHistogramFacet.FullEntry
          A histogram entry representing a single entry within the result of a histogram facet.
 
Nested classes/interfaces inherited from interface org.elasticsearch.search.facet.histogram.HistogramFacet
HistogramFacet.ComparatorType, HistogramFacet.Entry
 
Nested classes/interfaces inherited from interface org.elasticsearch.search.facet.InternalFacet
InternalFacet.Stream, InternalFacet.Streams
 
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.MapParams, ToXContent.Params
 
Field Summary
 
Fields inherited from interface org.elasticsearch.search.facet.histogram.HistogramFacet
TYPE
 
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
 
Constructor Summary
InternalBoundedFullHistogramFacet(String name, HistogramFacet.ComparatorType comparatorType, long interval, long offset, int size, Object[] entries, boolean cachedEntries)
           
 
Method Summary
 List<InternalBoundedFullHistogramFacet.FullEntry> entries()
          An ordered list of histogram facet entries.
 List<InternalBoundedFullHistogramFacet.FullEntry> getEntries()
          An ordered list of histogram facet entries.
 String getName()
          The "logical" name of the search facet.
 String getType()
          The type of the facet.
 Iterator<HistogramFacet.Entry> iterator()
           
 String name()
          The "logical" name of the search facet.
 void readFrom(StreamInput in)
           
static InternalBoundedFullHistogramFacet readHistogramFacet(StreamInput in)
           
 Facet reduce(String name, List<Facet> facets)
           
static void registerStreams()
           
 String streamType()
           
 XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params)
           
 String type()
          The type of the facet.
 void writeTo(StreamOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InternalBoundedFullHistogramFacet

public InternalBoundedFullHistogramFacet(String name,
                                         HistogramFacet.ComparatorType comparatorType,
                                         long interval,
                                         long offset,
                                         int size,
                                         Object[] entries,
                                         boolean cachedEntries)
Method Detail

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<InternalBoundedFullHistogramFacet.FullEntry> entries()
Description copied from interface: HistogramFacet
An ordered list of histogram facet entries.


getEntries

public List<InternalBoundedFullHistogramFacet.FullEntry> 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 InternalBoundedFullHistogramFacet 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.