public final class MongodbExpressions
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
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
|
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
|
static BooleanExpression |
withinBox(Expression<java.lang.Double[]> expr,
double blLongVal,
double blLatVal,
double urLongVal,
double urLatVal)
Finds points within bounds of the rectangle
|
public static BooleanExpression near(Expression<java.lang.Double[]> expr, double latVal, double longVal)
expr
- locationlatVal
- latitudelongVal
- longitudepublic static BooleanExpression nearSphere(Expression<java.lang.Double[]> expr, double latVal, double longVal)
expr
- locationlatVal
- latitudelongVal
- longitudepublic static BooleanExpression withinBox(Expression<java.lang.Double[]> expr, double blLongVal, double blLatVal, double urLongVal, double urLatVal)
blLatVal
- bottom left latitudeblLongVal
- bottom left longitudeurLatVal
- upper right latitudeurLongVal
- upper right longitudeCopyright © 2007–2021 Querydsl. All rights reserved.