@SuppressWarnings("rawtypes") public class MongoCriteriaBuilder extends CriteriaBuilder
Extends the default CriteriaBuilder implementation with Geolocation methods
| Fields inherited from class | Fields |
|---|---|
class CriteriaBuilder |
ORDER_DESCENDING, ORDER_ASCENDING, ORDER_DESCENDING, ORDER_ASCENDING |
| Constructor and description |
|---|
MongoCriteriaBuilder(Class<?> targetClass, Session session, Query query) |
MongoCriteriaBuilder(Class<?> targetClass, Session session) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public Criteria |
arguments(Map arguments) |
|
public Criteria |
geoIntersects(String property, GeoJSON shape)Geospacial query for the given shape returning records that are found to intersect the given shape |
|
public Criteria |
geoWithin(String property, Shape shape)Geospacial query for the given shape returning records that are found within the given shape |
|
public Criteria |
near(String property, List<?> value)Geospacial query for values near the given two dimensional list |
|
public Criteria |
near(String property, List<?> value, Number maxDistance)Geospacial query for values near the given two dimensional list |
|
public Criteria |
near(String property, List<?> value, Distance maxDistance)Geospacial query for values near the given two dimensional list |
|
public Criteria |
near(String property, Point value)Geospacial query for values near the given two dimensional list |
|
public Criteria |
near(String property, Point value, Number maxDistance)Geospacial query for values near the given two dimensional list |
|
public Criteria |
near(String property, Point value, Distance maxDistance)Geospacial query for values near the given two dimensional list |
|
public Criteria |
nearSphere(String property, List<?> value)Geospacial query for values near the given two dimensional list |
|
public Criteria |
nearSphere(String property, List<?> value, Number maxDistance)Geospacial query for values near the given two dimensional list |
|
public Criteria |
nearSphere(String property, List<?> value, Distance maxDistance)Geospacial query for values near the given two dimensional list |
|
public Criteria |
nearSphere(String property, Point value)Geospacial query for values near the given two dimensional list |
|
public Criteria |
nearSphere(String property, Point value, Number maxDistance)Geospacial query for values near the given two dimensional list |
|
public Criteria |
nearSphere(String property, Point value, Distance maxDistance)Geospacial query for values near the given two dimensional list |
|
public Criteria |
withinBox(String property, List<?> value)Geospacial query for values within a given box. |
|
public Criteria |
withinCircle(String property, List<?> value)Geospacial query for values within a given circle. |
|
public Criteria |
withinPolygon(String property, List<?> value)Geospacial query for values within a given polygon. |
Geospacial query for the given shape returning records that are found to intersect the given shape
property - The propertyshape - The shapeGeospacial query for the given shape returning records that are found within the given shape
property - The propertyshape - The shapeGeospacial query for values near the given two dimensional list
property - The propertyvalue - A two dimensional list of valuesGeospacial query for values near the given two dimensional list
property - The propertyvalue - A two dimensional list of valuesGeospacial query for values near the given two dimensional list
property - The propertyvalue - A two dimensional list of valuesGeospacial query for values near the given two dimensional list
property - The propertyvalue - A two dimensional list of valuesGeospacial query for values near the given two dimensional list
property - The propertyvalue - A two dimensional list of valuesGeospacial query for values near the given two dimensional list
property - The propertyvalue - A two dimensional list of valuesGeospacial query for values near the given two dimensional list
property - The propertyvalue - A two dimensional list of valuesGeospacial query for values near the given two dimensional list
property - The propertyvalue - A two dimensional list of valuesGeospacial query for values near the given two dimensional list
property - The propertyvalue - A two dimensional list of valuesGeospacial query for values near the given two dimensional list
property - The propertyvalue - A two dimensional list of valuesGeospacial query for values near the given two dimensional list
property - The propertyvalue - A two dimensional list of valuesGeospacial query for values near the given two dimensional list
property - The propertyvalue - A two dimensional list of valuesGeospacial query for values within a given box. A box is defined as a multi-dimensional list in the form
[[40.73083, -73.99756], [40.741404, -73.988135]]
property - The propertyvalue - A multi-dimensional list of valuesGeospacial query for values within a given circle. A circle is defined as a multi-dimensial list containing the position of the center and the radius:
[[50, 50], 10]
property - The propertyvalue - A multi-dimensional list of values