Package com.querydsl.mongodb.document
Class MongodbExpressions
- java.lang.Object
-
- com.querydsl.mongodb.document.MongodbExpressions
-
public final class MongodbExpressions extends java.lang.ObjectMongodb Document-API-specific operations.- Author:
- tiwe, Mark Paluch
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BooleanExpressionnear(Expression<java.lang.Double[]> expr, double latVal, double longVal)Finds the closest points relative to the given location and orders the results with decreasing proximitystatic BooleanExpressionnearSphere(Expression<java.lang.Double[]> expr, double latVal, double longVal)Finds the closest points relative to the given location on a sphere and orders the results with decreasing proximity
-
-
-
Method Detail
-
near
public static BooleanExpression near(Expression<java.lang.Double[]> expr, double latVal, double longVal)
Finds the closest points relative to the given location and orders the results with decreasing proximity- Parameters:
expr- locationlatVal- latitudelongVal- longitude- Returns:
- predicate
-
nearSphere
public static BooleanExpression nearSphere(Expression<java.lang.Double[]> expr, double latVal, double longVal)
Finds the closest points relative to the given location on a sphere and orders the results with decreasing proximity- Parameters:
expr- locationlatVal- latitudelongVal- longitude- Returns:
- predicate
-
-