Package com.querydsl.mongodb.document
Class MongodbExpressions
java.lang.Object
com.querydsl.mongodb.document.MongodbExpressions
Mongodb Document-API-specific operations.
- Author:
- tiwe, Mark Paluch
-
Method Summary
Modifier and TypeMethodDescriptionstatic BooleanExpressionnear(Expression<Double[]> expr, double latVal, double longVal) Finds the closest points relative to the given location and orders the results with decreasing proximitystatic BooleanExpressionnearSphere(Expression<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 Details
-
near
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<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
-