public class InternalGeoDistanceFacet extends InternalFacet implements GeoDistanceFacet
InternalFacet.ReduceContext, InternalFacet.Stream, InternalFacet.Streams
GeoDistanceFacet.Entry
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
TYPE
EMPTY_PARAMS
Constructor and Description |
---|
InternalGeoDistanceFacet(String name,
GeoDistanceFacet.Entry[] entries) |
Modifier and Type | Method and Description |
---|---|
List<GeoDistanceFacet.Entry> |
getEntries()
An ordered list of geo distance facet entries.
|
String |
getType()
The type of the facet.
|
Iterator<GeoDistanceFacet.Entry> |
iterator() |
void |
readFrom(StreamInput in) |
static InternalGeoDistanceFacet |
readGeoDistanceFacet(StreamInput in) |
Facet |
reduce(InternalFacet.ReduceContext context) |
static void |
registerStreams() |
BytesReference |
streamType() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
getName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public InternalGeoDistanceFacet(String name, GeoDistanceFacet.Entry[] entries)
public static void registerStreams()
public BytesReference streamType()
streamType
in class InternalFacet
public List<GeoDistanceFacet.Entry> getEntries()
GeoDistanceFacet
getEntries
in interface GeoDistanceFacet
public Iterator<GeoDistanceFacet.Entry> iterator()
iterator
in interface Iterable<GeoDistanceFacet.Entry>
public Facet reduce(InternalFacet.ReduceContext context)
reduce
in class InternalFacet
public static InternalGeoDistanceFacet readGeoDistanceFacet(StreamInput in) throws IOException
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class InternalFacet
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class InternalFacet
IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
IOException
Copyright © 2009–2015. All rights reserved.