public final class GeoQueryContext extends java.lang.Object implements ToXContentObject
GeoContextMapping| Modifier and Type | Class and Description |
|---|---|
static class |
GeoQueryContext.Builder |
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
EMPTY_PARAMS| Modifier and Type | Method and Description |
|---|---|
static GeoQueryContext.Builder |
builder() |
boolean |
equals(java.lang.Object o) |
static GeoQueryContext |
fromXContent(XContentParser parser) |
int |
getBoost()
Returns the query-time boost of the context
|
GeoPoint |
getGeoPoint()
Returns the geo point of the context
|
java.util.List<java.lang.Integer> |
getNeighbours()
Returns the precision levels at which geohash cells neighbours are considered
|
int |
getPrecision()
Returns the precision (length) for the geohash
|
int |
hashCode() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitisFragmentpublic static final java.lang.String NAME
public GeoPoint getGeoPoint()
public int getBoost()
public int getPrecision()
public java.util.List<java.lang.Integer> getNeighbours()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic static GeoQueryContext.Builder builder()
public static GeoQueryContext fromXContent(XContentParser parser) throws java.io.IOException
java.io.IOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContentjava.io.IOException