org.elasticsearch.search.facet.range
Class InternalRangeFacet

java.lang.Object
  extended by org.elasticsearch.search.facet.range.InternalRangeFacet
All Implemented Interfaces:
java.lang.Iterable<RangeFacet.Entry>, Streamable, ToXContent, Facet, InternalFacet, RangeFacet

public class InternalRangeFacet
extends java.lang.Object
implements RangeFacet, InternalFacet


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.elasticsearch.search.facet.range.RangeFacet
RangeFacet.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.range.RangeFacet
TYPE
 
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
 
Constructor Summary
InternalRangeFacet(java.lang.String name, RangeFacet.Entry[] entries)
           
 
Method Summary
 java.util.List<RangeFacet.Entry> entries()
          An ordered list of range facet entries.
 java.util.List<RangeFacet.Entry> getEntries()
          An ordered list of range facet entries.
 java.lang.String getName()
          The "logical" name of the search facet.
 java.lang.String getType()
          The type of the facet.
 java.util.Iterator<RangeFacet.Entry> iterator()
           
 java.lang.String name()
          The "logical" name of the search facet.
 void readFrom(StreamInput in)
           
static InternalRangeFacet readRangeFacet(StreamInput in)
           
static void registerStreams()
           
 java.lang.String streamType()
           
 XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params)
           
 java.lang.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

InternalRangeFacet

public InternalRangeFacet(java.lang.String name,
                          RangeFacet.Entry[] entries)
Method Detail

registerStreams

public static void registerStreams()

streamType

public java.lang.String streamType()
Specified by:
streamType in interface InternalFacet

name

public java.lang.String name()
Description copied from interface: Facet
The "logical" name of the search facet.

Specified by:
name in interface Facet

getName

public java.lang.String getName()
Description copied from interface: Facet
The "logical" name of the search facet.

Specified by:
getName in interface Facet

type

public java.lang.String type()
Description copied from interface: Facet
The type of the facet.

Specified by:
type in interface Facet

getType

public java.lang.String getType()
Description copied from interface: Facet
The type of the facet.

Specified by:
getType in interface Facet

entries

public java.util.List<RangeFacet.Entry> entries()
Description copied from interface: RangeFacet
An ordered list of range facet entries.

Specified by:
entries in interface RangeFacet

getEntries

public java.util.List<RangeFacet.Entry> getEntries()
Description copied from interface: RangeFacet
An ordered list of range facet entries.

Specified by:
getEntries in interface RangeFacet

iterator

public java.util.Iterator<RangeFacet.Entry> iterator()
Specified by:
iterator in interface java.lang.Iterable<RangeFacet.Entry>

readRangeFacet

public static InternalRangeFacet readRangeFacet(StreamInput in)
                                         throws java.io.IOException
Throws:
java.io.IOException

readFrom

public void readFrom(StreamInput in)
              throws java.io.IOException
Specified by:
readFrom in interface Streamable
Throws:
java.io.IOException

writeTo

public void writeTo(StreamOutput out)
             throws java.io.IOException
Specified by:
writeTo in interface Streamable
Throws:
java.io.IOException

toXContent

public XContentBuilder toXContent(XContentBuilder builder,
                                  ToXContent.Params params)
                           throws java.io.IOException
Specified by:
toXContent in interface ToXContent
Throws:
java.io.IOException