public class InternalGeoDistanceFacet extends InternalFacet implements GeoDistanceFacet
InternalFacet.ReduceContext, InternalFacet.Stream, InternalFacet.StreamsGeoDistanceFacet.EntryToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsTYPEEMPTY_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) |
getNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic InternalGeoDistanceFacet(String name, GeoDistanceFacet.Entry[] entries)
public static void registerStreams()
public BytesReference streamType()
streamType in class InternalFacetpublic List<GeoDistanceFacet.Entry> getEntries()
GeoDistanceFacetgetEntries in interface GeoDistanceFacetpublic Iterator<GeoDistanceFacet.Entry> iterator()
iterator in interface Iterable<GeoDistanceFacet.Entry>public Facet reduce(InternalFacet.ReduceContext context)
reduce in class InternalFacetpublic static InternalGeoDistanceFacet readGeoDistanceFacet(StreamInput in) throws IOException
IOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class InternalFacetIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class InternalFacetIOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionCopyright © 2009–2016. All rights reserved.