Package com.querydsl.mongodb
Class MongodbExpressions
- java.lang.Object
-
- com.querydsl.mongodb.MongodbExpressions
-
public final class MongodbExpressions extends java.lang.ObjectMongodb specific operations- Author:
- tiwe, sangyong choi
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T,Q extends SimpleExpression<? super T>>
BooleanExpressionall(ListPath<T,Q> expr, java.util.Collection<T> params)Find documents where the value of a field is an array that contains all the specific elements.static BooleanExpressiongeoIntersects(Expression<java.lang.Double[]> expr, double latVal, double longVal)Finds documents whose geospatial data intersectsstatic 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 proximitystatic BooleanExpressionwithinBox(Expression<java.lang.Double[]> expr, double blLongVal, double blLatVal, double urLongVal, double urLatVal)Finds points within bounds of the rectangle
-
-
-
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
-
withinBox
public static BooleanExpression withinBox(Expression<java.lang.Double[]> expr, double blLongVal, double blLatVal, double urLongVal, double urLatVal)
Finds points within bounds of the rectangle- Parameters:
blLatVal- bottom left latitudeblLongVal- bottom left longitudeurLatVal- upper right latitudeurLongVal- upper right longitude- Returns:
- predicate
-
geoIntersects
public static BooleanExpression geoIntersects(Expression<java.lang.Double[]> expr, double latVal, double longVal)
Finds documents whose geospatial data intersects- Parameters:
expr- locationlatVal- latitudelongVal- longitude- Returns:
- predicate
-
all
public static <T,Q extends SimpleExpression<? super T>> BooleanExpression all(ListPath<T,Q> expr, java.util.Collection<T> params)
Find documents where the value of a field is an array that contains all the specific elements.- Parameters:
expr- expressionparams- params
-
-