org.elasticsearch.search.facet.termsstats.doubles
Class InternalTermsStatsDoubleFacet

java.lang.Object
  extended by org.elasticsearch.search.facet.termsstats.InternalTermsStatsFacet
      extended by org.elasticsearch.search.facet.termsstats.doubles.InternalTermsStatsDoubleFacet
All Implemented Interfaces:
Iterable<TermsStatsFacet.Entry>, Streamable, ToXContent, Facet, InternalFacet, TermsStatsFacet

public class InternalTermsStatsDoubleFacet
extends InternalTermsStatsFacet


Nested Class Summary
static class InternalTermsStatsDoubleFacet.DoubleEntry
           
 
Nested classes/interfaces inherited from interface org.elasticsearch.search.facet.termsstats.TermsStatsFacet
TermsStatsFacet.ComparatorType, TermsStatsFacet.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.termsstats.TermsStatsFacet
TYPE
 
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
 
Constructor Summary
InternalTermsStatsDoubleFacet()
           
InternalTermsStatsDoubleFacet(String name, TermsStatsFacet.ComparatorType comparatorType, int requiredSize, Collection<InternalTermsStatsDoubleFacet.DoubleEntry> entries, long missing)
           
 
Method Summary
 List<InternalTermsStatsDoubleFacet.DoubleEntry> entries()
          The terms and counts.
 List<InternalTermsStatsDoubleFacet.DoubleEntry> getEntries()
          The terms and counts.
 long getMissingCount()
          The number of docs missing a value.
 String getName()
          The "logical" name of the search facet.
 String getType()
          The type of the facet.
 Iterator<TermsStatsFacet.Entry> iterator()
           
 long missingCount()
          The number of docs missing a value.
 String name()
          The "logical" name of the search facet.
 void readFrom(StreamInput in)
           
static InternalTermsStatsDoubleFacet readTermsStatsFacet(StreamInput in)
           
 Facet reduce(String name, List<Facet> facets)
           
static void registerStream()
           
 String streamType()
           
 XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params)
           
 String type()
          The type of the facet.
 void writeTo(StreamOutput out)
           
 
Methods inherited from class org.elasticsearch.search.facet.termsstats.InternalTermsStatsFacet
registerStreams
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InternalTermsStatsDoubleFacet

public InternalTermsStatsDoubleFacet()

InternalTermsStatsDoubleFacet

public InternalTermsStatsDoubleFacet(String name,
                                     TermsStatsFacet.ComparatorType comparatorType,
                                     int requiredSize,
                                     Collection<InternalTermsStatsDoubleFacet.DoubleEntry> entries,
                                     long missing)
Method Detail

registerStream

public static void registerStream()

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<InternalTermsStatsDoubleFacet.DoubleEntry> entries()
Description copied from interface: TermsStatsFacet
The terms and counts.


getEntries

public List<InternalTermsStatsDoubleFacet.DoubleEntry> getEntries()
Description copied from interface: TermsStatsFacet
The terms and counts.


iterator

public Iterator<TermsStatsFacet.Entry> iterator()

missingCount

public long missingCount()
Description copied from interface: TermsStatsFacet
The number of docs missing a value.


getMissingCount

public long getMissingCount()
Description copied from interface: TermsStatsFacet
The number of docs missing a value.


reduce

public Facet reduce(String name,
                    List<Facet> facets)
Specified by:
reduce in class InternalTermsStatsFacet

toXContent

public XContentBuilder toXContent(XContentBuilder builder,
                                  ToXContent.Params params)
                           throws IOException
Throws:
IOException

readTermsStatsFacet

public static InternalTermsStatsDoubleFacet readTermsStatsFacet(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.