com.mysema.query.mongodb
Class Point

java.lang.Object
  extended by com.mysema.query.types.ExpressionBase<T>
      extended by com.mysema.query.types.expr.SimpleExpression<E[]>
          extended by com.mysema.query.types.path.ArrayPath<Double>
              extended by com.mysema.query.mongodb.Point
All Implemented Interfaces:
ArrayExpression<Double>, Expression<Double[]>, Path<Double[]>, Serializable

public class Point
extends ArrayPath<Double>

Point is 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.mysema.query.types.expr.SimpleExpression
primitive
 
Fields inherited from class com.mysema.query.types.ExpressionBase
type
 
Constructor Summary
Point(Path<?> parent, String property)
           
Point(PathMetadata<?> metadata)
           
Point(String variable)
           
 
Method Summary
 BooleanExpression near(double latVal, double longVal)
          Finds the closest points relative to the given location and orders the results with decreasing promimity
 
Methods inherited from class com.mysema.query.types.path.ArrayPath
accept, equals, get, get, getAnnotatedElement, getElementType, getMetadata, getRoot, hashCode, size
 
Methods inherited from class com.mysema.query.types.expr.SimpleExpression
as, as, count, countDistinct, eq, eq, in, in, in, isNotNull, isNull, ne, ne, notIn, notIn, notIn, when, when
 
Methods inherited from class com.mysema.query.types.ExpressionBase
getType, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.mysema.query.types.Expression
getType
 

Constructor Detail

Point

public Point(String variable)

Point

public Point(Path<?> parent,
             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 promimity

Parameters:
latVal - latitude
longVal - longitude
Returns:


Copyright © 2007-2011 Mysema Ltd. All Rights Reserved.