com.mysema.query.mongodb
Class Point

java.lang.Object
  extended by com.mysema.query.types.expr.DslExpression<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.DslExpression
mixin
 
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, get, get, getAnnotatedElement, getElementType, getMetadata, getRoot, size
 
Methods inherited from class com.mysema.query.types.expr.SimpleExpression
as, as, count, countDistinct, eq, eq, eqAll, eqAny, in, in, in, isNotNull, isNull, ne, ne, neAll, neAny, notIn, notIn, notIn, when, when
 
Methods inherited from class com.mysema.query.types.expr.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.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-2012 Mysema Ltd. All Rights Reserved.