Class

reactivemongo.api.commands.AggregationFramework

GeoNear

Related Doc: package AggregationFramework

Permalink

case class GeoNear(spherical: Boolean = false, limit: Long = 100, maxDistance: Option[Long] = None, selector: Option[P.Document] = None, distanceMultiplier: Option[Double] = None, uniqueDocs: Boolean = false, near: Option[P.Value] = None, distanceField: Option[String] = None, includeLocs: Option[String] = None) extends PipelineOperator with Product with Serializable

Outputs documents in order of nearest to farthest from a specified point. http://docs.mongodb.org/manual/reference/operator/aggregation/geoNear/#pipe._S_geoNear

spherical

if using a 2dsphere index

limit

the maximum number of documents to return

maxDistance

the maximum distance from the center point that the documents can be

selector

limits the results to the matching documents

distanceMultiplier

the factor to multiply all distances returned by the query

uniqueDocs

if this value is true, the query returns a matching document once

near

the point for which to find the closest documents

distanceField

the output field that contains the calculated distance

includeLocs

this specifies the output field that identifies the location used to calculate the distance

Linear Supertypes
Serializable, Serializable, Product, Equals, PipelineOperator, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. GeoNear
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. PipelineOperator
  7. AnyRef
  8. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new GeoNear(spherical: Boolean = false, limit: Long = 100, maxDistance: Option[Long] = None, selector: Option[P.Document] = None, distanceMultiplier: Option[Double] = None, uniqueDocs: Boolean = false, near: Option[P.Value] = None, distanceField: Option[String] = None, includeLocs: Option[String] = None)

    Permalink

    spherical

    if using a 2dsphere index

    limit

    the maximum number of documents to return

    maxDistance

    the maximum distance from the center point that the documents can be

    selector

    limits the results to the matching documents

    distanceMultiplier

    the factor to multiply all distances returned by the query

    uniqueDocs

    if this value is true, the query returns a matching document once

    near

    the point for which to find the closest documents

    distanceField

    the output field that contains the calculated distance

    includeLocs

    this specifies the output field that identifies the location used to calculate the distance

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from GeoNear to any2stringadd[GeoNear] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (GeoNear, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from GeoNear to ArrowAssoc[GeoNear] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. val distanceField: Option[String]

    Permalink

    the output field that contains the calculated distance

  9. val distanceMultiplier: Option[Double]

    Permalink

    the factor to multiply all distances returned by the query

  10. def ensuring(cond: (GeoNear) ⇒ Boolean, msg: ⇒ Any): GeoNear

    Permalink
    Implicit information
    This member is added by an implicit conversion from GeoNear to Ensuring[GeoNear] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: (GeoNear) ⇒ Boolean): GeoNear

    Permalink
    Implicit information
    This member is added by an implicit conversion from GeoNear to Ensuring[GeoNear] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean, msg: ⇒ Any): GeoNear

    Permalink
    Implicit information
    This member is added by an implicit conversion from GeoNear to Ensuring[GeoNear] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean): GeoNear

    Permalink
    Implicit information
    This member is added by an implicit conversion from GeoNear to Ensuring[GeoNear] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from GeoNear to StringFormat[GeoNear] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  17. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  18. val includeLocs: Option[String]

    Permalink

    this specifies the output field that identifies the location used to calculate the distance

  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. val limit: Long

    Permalink

    the maximum number of documents to return

  21. def makePipe: P.Document

    Permalink
    Definition Classes
    GeoNearPipelineOperator
  22. val maxDistance: Option[Long]

    Permalink

    the maximum distance from the center point that the documents can be

  23. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. val near: Option[P.Value]

    Permalink

    the point for which to find the closest documents

  25. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. val selector: Option[P.Document]

    Permalink

    limits the results to the matching documents

  28. val spherical: Boolean

    Permalink

    if using a 2dsphere index

  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  30. val uniqueDocs: Boolean

    Permalink

    if this value is true, the query returns a matching document once

  31. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. def [B](y: B): (GeoNear, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from GeoNear to ArrowAssoc[GeoNear] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from PipelineOperator

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from GeoNear to any2stringadd[GeoNear]

Inherited by implicit conversion StringFormat from GeoNear to StringFormat[GeoNear]

Inherited by implicit conversion Ensuring from GeoNear to Ensuring[GeoNear]

Inherited by implicit conversion ArrowAssoc from GeoNear to ArrowAssoc[GeoNear]

Ungrouped