com.mongodb.casbah.query

GeoNearOp

trait GeoNearOp extends QueryOperator

Trait to provide the $near geospatial search method on appropriate callers

Note that the args aren't TECHNICALLY latitude and longitude as they depend on: a) the order you specified your actual index in b) if you're using actual world maps or something else

Source
CoreOperators.scala
Since

2.0

See also

http://www.mongodb.org/display/DOCS/Geospatial+Indexing

Linear Supertypes
QueryOperator, Logging, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. GeoNearOp
  2. QueryOperator
  3. Logging
  4. AnyRef
  5. Any
Visibility
  1. Public
  2. All

Type Members

  1. class NearOpWrapper extends BasicDBObject

    Attributes
    sealed

Abstract Value Members

  1. val field : String

    Attributes
    abstract
    Definition Classes
    QueryOperator

Concrete Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def $near (coords: com.mongodb.casbah.query.GeoCoords[_, _]): NearOpWrapper

  5. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  6. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  7. def anyListOp (oper: String, target: Any*): DBObject with DSLDBObject

    Definition Classes
    QueryOperator
  8. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  9. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  10. var dbObj : Option[DBObject]

    Attributes
    protected
    Definition Classes
    QueryOperator
  11. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  12. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  13. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  14. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef
  15. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  16. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  17. var log : Logger

    Attributes
    protected[casbah]
    Definition Classes
    Logging
  18. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  19. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  20. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  21. def op (oper: String, target: Any): DBObject with DSLDBObject

    Base method for children to call to convert an operator call into a Mongo DBObject.

    Base method for children to call to convert an operator call into a Mongo DBObject.

    e.g. "foo" $ne "bar" will convert to {"foo": {"$ne": "bar"}}

    Optionally, if dbObj, being Some(DBObject) is defined, the op(oper, ) method will nest the target value and operator inside the existing dbObj - this is useful for things like mixing $lte and $gte WARNING: This does NOT check that target is a serializable type. That is, for the moment, your own problem.

    Attributes
    protected
    Definition Classes
    QueryOperator
  22. def patchSerialization (target: Any): Unit

    Temporary fix code for making sure certain edge cases w/ the serialization libs Don't happen.

    Temporary fix code for making sure certain edge cases w/ the serialization libs Don't happen. This may impose a slight performance penalty.

    Attributes
    protected
    Definition Classes
    QueryOperator
  23. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  24. def toString (): String

    Definition Classes
    AnyRef → Any
  25. def wait (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  26. def wait (arg0: Long, arg1: Int): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  27. def wait (arg0: Long): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from QueryOperator

Inherited from Logging

Inherited from AnyRef

Inherited from Any