Package com.querydsl.mongodb
Class Point
- java.lang.Object
-
- com.querydsl.core.types.dsl.DslExpression<T>
-
- com.querydsl.core.types.dsl.SimpleExpression<A>
-
- com.querydsl.core.types.dsl.ArrayPath<java.lang.Double[],java.lang.Double>
-
- com.querydsl.mongodb.Point
-
- All Implemented Interfaces:
ArrayExpression<java.lang.Double[],java.lang.Double>,Expression<java.lang.Double[]>,Path<java.lang.Double[]>,java.io.Serializable
public class Point extends ArrayPath<java.lang.Double[],java.lang.Double>
Pointis an adapter type for Double[] arrays to use geo spatial querying features of Mongodb- Author:
- tiwe
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.querydsl.core.types.dsl.DslExpression
hashCode, mixin
-
-
Constructor Summary
Constructors Constructor Description Point(Path<?> parent, java.lang.String property)Point(PathMetadata metadata)Point(java.lang.String variable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanExpressionnear(double latVal, double longVal)Finds the closest points relative to the given location and orders the results with decreasing proximity-
Methods inherited from class com.querydsl.core.types.dsl.ArrayPath
accept, get, get, getAnnotatedElement, getElementType, getMetadata, getRoot, size
-
Methods inherited from class com.querydsl.core.types.dsl.SimpleExpression
as, as, count, countDistinct, eq, eq, eqAll, eqAll, eqAny, eqAny, in, in, in, in, in, isNotNull, isNull, ne, ne, neAll, neAny, notIn, notIn, notIn, notIn, notIn, nullif, nullif, when, when
-
Methods inherited from class com.querydsl.core.types.dsl.DslExpression
equals, getType, hashCode, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.querydsl.core.types.Expression
getType
-
-
-
-
Constructor Detail
-
Point
public Point(java.lang.String variable)
-
Point
public Point(Path<?> parent, java.lang.String property)
-
Point
public Point(PathMetadata metadata)
-
-
Method Detail
-
near
public BooleanExpression near(double latVal, double longVal)
Finds the closest points relative to the given location and orders the results with decreasing proximity- Parameters:
latVal- latitudelongVal- longitude- Returns:
- predicate
-
-