org.elasticsearch.search.facet.geodistance
Class InternalGeoDistanceFacet

java.lang.Object
  extended by org.elasticsearch.search.facet.geodistance.InternalGeoDistanceFacet
All Implemented Interfaces:
Iterable<GeoDistanceFacet.Entry>, Streamable, ToXContent, Facet, GeoDistanceFacet, InternalFacet

public class InternalGeoDistanceFacet
extends Object
implements GeoDistanceFacet, InternalFacet


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.elasticsearch.search.facet.geodistance.GeoDistanceFacet
GeoDistanceFacet.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.geodistance.GeoDistanceFacet
TYPE
 
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
 
Constructor Summary
InternalGeoDistanceFacet(String name, GeoDistanceFacet.Entry[] entries)
           
 
Method Summary
 List<GeoDistanceFacet.Entry> entries()
          An ordered list of geo distance facet entries.
 List<GeoDistanceFacet.Entry> getEntries()
          An ordered list of geo distance facet entries.
 String getName()
          The "logical" name of the search facet.
 String getType()
          The type of the facet.
 Iterator<GeoDistanceFacet.Entry> iterator()
           
 String name()
          The "logical" name of the search facet.
 void readFrom(StreamInput in)
           
static InternalGeoDistanceFacet readGeoDistanceFacet(StreamInput in)
           
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

InternalGeoDistanceFacet

public InternalGeoDistanceFacet(String name,
                                GeoDistanceFacet.Entry[] entries)
Method Detail

registerStreams

public static void registerStreams()

streamType

public String streamType()
Specified by:
streamType in interface InternalFacet

name

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

Specified by:
name in interface Facet

getName

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

Specified by:
getName in interface Facet

type

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

Specified by:
type in interface Facet

getType

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

Specified by:
getType in interface Facet

entries

public List<GeoDistanceFacet.Entry> entries()
Description copied from interface: GeoDistanceFacet
An ordered list of geo distance facet entries.

Specified by:
entries in interface GeoDistanceFacet

getEntries

public List<GeoDistanceFacet.Entry> getEntries()
Description copied from interface: GeoDistanceFacet
An ordered list of geo distance facet entries.

Specified by:
getEntries in interface GeoDistanceFacet

iterator

public Iterator<GeoDistanceFacet.Entry> iterator()
Specified by:
iterator in interface Iterable<GeoDistanceFacet.Entry>

readGeoDistanceFacet

public static InternalGeoDistanceFacet readGeoDistanceFacet(StreamInput in)
                                                     throws IOException
Throws:
IOException

readFrom

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

writeTo

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

toXContent

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


Copyright © 2009-2012. All Rights Reserved.