com.mysema.query.mongodb
Class Point
java.lang.Object
com.mysema.query.types.expr.DslExpression<T>
com.mysema.query.types.expr.SimpleExpression<E[]>
com.mysema.query.types.path.ArrayPath<Double>
com.mysema.query.mongodb.Point
- All Implemented Interfaces:
- ArrayExpression<Double>, Expression<Double[]>, Path<Double[]>, Serializable
public class Point
- extends ArrayPath<Double>
Point is an adapter type for Double[] arrays to use geo spatial querying features of Mongodb
- Author:
- tiwe
- See Also:
- Serialized Form
Method Summary |
BooleanExpression |
near(double latVal,
double longVal)
Finds the closest points relative to the given location and orders the results with decreasing promimity |
Methods inherited from class com.mysema.query.types.expr.SimpleExpression |
as, as, count, countDistinct, eq, eq, eqAll, eqAny, in, in, in, isNotNull, isNull, ne, ne, neAll, neAny, notIn, notIn, notIn, when, when |
Point
public Point(String variable)
Point
public Point(Path<?> parent,
String property)
Point
public Point(PathMetadata<?> metadata)
near
public BooleanExpression near(double latVal,
double longVal)
- Finds the closest points relative to the given location and orders the results with decreasing promimity
- Parameters:
latVal
- latitudelongVal
- longitude
- Returns:
Copyright © 2007-2012 Mysema Ltd. All Rights Reserved.