org.elasticsearch.search.facet.geodistance
Class InternalGeoDistanceFacet
java.lang.Object
org.elasticsearch.search.facet.geodistance.InternalGeoDistanceFacet
- All Implemented Interfaces:
- java.lang.Iterable<GeoDistanceFacet.Entry>, Streamable, ToXContent, Facet, GeoDistanceFacet, InternalFacet
public class InternalGeoDistanceFacet
- extends java.lang.Object
- implements GeoDistanceFacet, InternalFacet
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InternalGeoDistanceFacet
public InternalGeoDistanceFacet(java.lang.String name,
GeoDistanceFacet.Entry[] entries)
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<GeoDistanceFacet.Entry> entries()
- Description copied from interface:
GeoDistanceFacet
- An ordered list of geo distance facet entries.
- Specified by:
entries
in interface GeoDistanceFacet
getEntries
public java.util.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 java.util.Iterator<GeoDistanceFacet.Entry> iterator()
- Specified by:
iterator
in interface java.lang.Iterable<GeoDistanceFacet.Entry>
readGeoDistanceFacet
public static InternalGeoDistanceFacet readGeoDistanceFacet(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