public final class GeoQueryContext extends java.lang.Object implements ToXContent
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(QueryParseContext context) |
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, wait
isFragment
public 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.Object
public int hashCode()
hashCode
in class java.lang.Object
public static GeoQueryContext.Builder builder()
public static GeoQueryContext fromXContent(QueryParseContext context) throws java.io.IOException
java.io.IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException