Class/Object

com.mongodb.casbah

MongoCursor

Related Docs: object MongoCursor | package casbah

Permalink

class MongoCursor extends MongoCursorBase with Iterator[casbah.Imports.DBObject]

Concrete cursor implementation expecting standard DBObject operation This is the version of MongoCursorBase you should expect to use in most cases.

Version

2.0, 12/23/10

Since

1.0

Linear Supertypes
Iterator[Imports.DBObject], TraversableOnce[Imports.DBObject], GenTraversableOnce[Imports.DBObject], MongoCursorBase, Logging, AnyRef, Any
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MongoCursor
  2. Iterator
  3. TraversableOnce
  4. GenTraversableOnce
  5. MongoCursorBase
  6. Logging
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MongoCursor(underlying: DBCursor)

    Permalink

    underlying

    (com.mongodb.DBCursor)

Type Members

  1. class GroupedIterator[B >: A] extends AbstractIterator[Seq[B]] with Iterator[Seq[B]]

    Permalink
    Definition Classes
    Iterator
  2. type T = DBObject

    Permalink
    Definition Classes
    MongoCursorMongoCursorBase

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def $explain(bool: Boolean = true): MongoCursor.this.type

    Permalink

    $explain

    $explain

    Sets a special operator of $explain which, if true, explains the query instead of returning results.

    This is the same as calling the explain() method on the cursor.

    bool

    (Boolean = true)

    returns

    the same DBCursor, useful for chaining operations

    Definition Classes
    MongoCursorBase
  4. def $hint[A](obj: A)(implicit arg0: (A) ⇒ Imports.DBObject): MongoCursor.this.type

    Permalink

    $hint

    $hint

    Sets a special operator $hint which forces the query to use a given index.

    This is the same as calling hint() on the cursor.

    obj

    (DBObject)

    returns

    the same DBCursor, useful for chaining operations

    Definition Classes
    MongoCursorBase
  5. def $max[A](obj: A)(implicit arg0: (A) ⇒ Imports.DBObject): MongoCursor.this.type

    Permalink

    $max

    $max

    Sets maximum index bounds - commonly paired with $max

    obj

    (DBObject)

    returns

    the same DBCursor, useful for chaining operations

    Definition Classes
    MongoCursorBase
    See also

    http://www.mongodb.org/display/DOCS/max+and+max+Query+Specifiers

  6. def $maxScan[A](max: T)(implicit arg0: Numeric[A]): MongoCursor.this.type

    Permalink

    $maxScan

    $maxScan

    Sets a special operator of $maxScan Which defines the max number of items to scan.

    A

    : Numeric

    max

    (A)

    returns

    the same DBCursor, useful for chaining operations

    Definition Classes
    MongoCursorBase
  7. def $min[A](obj: A)(implicit arg0: (A) ⇒ Imports.DBObject): MongoCursor.this.type

    Permalink

    $min

    $min

    Sets minimum index bounds - commonly paired with $max

    obj

    (DBObject)

    returns

    the same DBCursor, useful for chaining operations

    Definition Classes
    MongoCursorBase
    See also

    http://www.mongodb.org/display/DOCS/min+and+max+Query+Specifiers

  8. def $orderby[A](obj: A)(implicit arg0: (A) ⇒ Imports.DBObject): MongoCursor.this.type

    Permalink

    $orderby

    $orderby

    Sets a special operator of $orderby which defines the sort spec for this cursor.

    This is the same as calling sort on the cursor.

    obj

    (DBObject)

    returns

    the same DBCursor, useful for chaining operations

    Definition Classes
    MongoCursorBase
  9. def $query[A](q: A)(implicit arg0: (A) ⇒ Imports.DBObject): MongoCursor.this.type

    Permalink

    $query

    $query

    Sets a special operator of $query Which defines the query for this cursor.

    This is the same as running find() on a Collection with the query.

    q

    (DBObject)

    returns

    the same DBCursor, useful for chaining operations

    Definition Classes
    MongoCursorBase
  10. def $returnKey(bool: Boolean = true): MongoCursor.this.type

    Permalink

    $returnKey

    $returnKey

    Sets a special operator of $returnKey If true, returns ONLY the index key. Defaults to true if you just call $returnKey

    bool

    (Boolean = true)

    returns

    the same DBCursor, useful for chaining operations

    Definition Classes
    MongoCursorBase
  11. def $showDiskLoc(bool: Boolean = true): MongoCursor.this.type

    Permalink

    $showDiskLoc

    $showDiskLoc

    Sets a special operator $showDiskLoc which, if true, shows the disk location of results.

    bool

    (Boolean = true)

    returns

    the same DBCursor, useful for chaining operations

    Definition Classes
    MongoCursorBase
  12. def $snapshot(bool: Boolean = true): MongoCursor.this.type

    Permalink

    $snapshot

    $snapshot

    Sets a special operator of $snapshot which, if True, sets snapshot mode on the query.

    This is the same as calling the snapshot() method on the cursor.

    bool

    (Boolean = true)

    returns

    the same DBCursor, useful for chaining operations

    Definition Classes
    MongoCursorBase
  13. def ++[B >: Imports.DBObject](that: ⇒ GenTraversableOnce[B]): Iterator[B]

    Permalink
    Definition Classes
    Iterator
  14. def /:[B](z: B)(op: (B, Imports.DBObject) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  15. def :\[B](z: B)(op: (Imports.DBObject, B) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  16. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  17. def _newInstance(cursor: DBCursor): MongoCursor

    Permalink

    _newInstance

    _newInstance

    Utility method which concrete subclasses are expected to implement for creating a new instance of THIS concrete implementation from a Java cursor. Good with cursor calls that return a new cursor.

    cursor

    (DBCursor)

    returns

    (this.type)

    Definition Classes
    MongoCursorMongoCursorBase
  18. def addSpecial(name: String, o: Any): MongoCursor.this.type

    Permalink

    "Special" Operators for cursors

    "Special" Operators for cursors

    adds a special operator like $maxScan or $returnKey

    returns

    the same DBCursor, useful for chaining operations

    Definition Classes
    MongoCursorBase
    See also

    http://www.mongodb.org/display/DOCS/Advanced+Queries#AdvancedQueries-Specialoperators { @inheritDoc}

  19. def addString(b: StringBuilder): StringBuilder

    Permalink
    Definition Classes
    TraversableOnce
  20. def addString(b: StringBuilder, sep: String): StringBuilder

    Permalink
    Definition Classes
    TraversableOnce
  21. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder

    Permalink
    Definition Classes
    TraversableOnce
  22. def aggregate[B](z: ⇒ B)(seqop: (B, Imports.DBObject) ⇒ B, combop: (B, B) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  23. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  24. def batchSize(n: Int): MongoCursorBase

    Permalink

    batchSize

    batchSize

    Limits the number of elements returned in one batch.

    n

    (Int) The number of elements to return in a batch

    returns

    the same DBCursor, useful for chaining operations

    Definition Classes
    MongoCursorBase
  25. def buffered: BufferedIterator[Imports.DBObject]

    Permalink
    Definition Classes
    Iterator
  26. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. def close(): Unit

    Permalink

    close

    close

    Kill the current cursor on the server

    Definition Classes
    MongoCursorBase
  28. def collect[B](pf: PartialFunction[Imports.DBObject, B]): Iterator[B]

    Permalink
    Definition Classes
    Iterator
    Annotations
    @migration
    Migration

    (Changed in version 2.8.0) collect has changed. The previous behavior can be reproduced with toSeq.

  29. def collectFirst[B](pf: PartialFunction[Imports.DBObject, B]): Option[B]

    Permalink
    Definition Classes
    TraversableOnce
  30. def contains(elem: Any): Boolean

    Permalink
    Definition Classes
    Iterator
  31. def copy(): MongoCursor

    Permalink

    copy

    copy

    Creates a new copy of an existing database cursor. The new cursor is an iterator even if the original was an array.

    returns

    The new cursor

    Definition Classes
    MongoCursorMongoCursorBase
  32. def copyToArray[B >: Imports.DBObject](xs: Array[B], start: Int, len: Int): Unit

    Permalink
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  33. def copyToArray[B >: Imports.DBObject](xs: Array[B]): Unit

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  34. def copyToArray[B >: Imports.DBObject](xs: Array[B], start: Int): Unit

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  35. def copyToBuffer[B >: Imports.DBObject](dest: Buffer[B]): Unit

    Permalink
    Definition Classes
    TraversableOnce
  36. def corresponds[B](that: GenTraversableOnce[B])(p: (Imports.DBObject, B) ⇒ Boolean): Boolean

    Permalink
    Definition Classes
    Iterator
  37. def count(p: (Imports.DBObject) ⇒ Boolean): Int

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  38. def count(): Int

    Permalink

    count

    count

    The DBCursor's count of elements in the query, passed through from the Java object. Note that Scala Iterator[_] base trait has a count method which tests predicates and you should be careful about using that.

    NOTE: count() ignores any skip/limit settings on a cursor; it is the count of the ENTIRE query results. If you want to get a count post-skip/limit you must use size()

    returns

    Int indicating the number of elements returned by the query

    Definition Classes
    MongoCursorBase
    Exceptions thrown
    See also

    size()

  39. def cursorId: Long

    Permalink

    cursorId

    cursorId

    returns

    A long representing the cursorID on the server; 0 = no cursor

    Definition Classes
    MongoCursorBase
  40. def drop(n: Int): Iterator[Imports.DBObject]

    Permalink
    Definition Classes
    Iterator
  41. def dropWhile(p: (Imports.DBObject) ⇒ Boolean): Iterator[Imports.DBObject]

    Permalink
    Definition Classes
    Iterator
  42. def duplicate: (Iterator[Imports.DBObject], Iterator[Imports.DBObject])

    Permalink
    Definition Classes
    Iterator
  43. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  44. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  45. def exists(p: (Imports.DBObject) ⇒ Boolean): Boolean

    Permalink
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  46. def explain: CursorExplanation

    Permalink

    explain

    explain

    Returns an object containing basic information about the execution of the query that created this cursor. This creates an instance of CursorExplanation which is a custom dbObject with the key/value pairs: - cursor = Cursor Type - nscanned = Number of items examined by Mongo for this query - nscannedObjects = Number of objects examined by Mongo - n = the number of records which Mongo returned - millis = how long it took Mongo to execute the query - nYields = number of times this query yielded the read lock to let writes in - indexBounds = the index boundaries used.

    CursorExplanation provides utility methods to access these fields.

    returns

    an instance of CursorExplanation

    Definition Classes
    MongoCursorBase
    See also

    http://dochub.mongodb.org/core/explain

  47. def filter(p: (Imports.DBObject) ⇒ Boolean): Iterator[Imports.DBObject]

    Permalink
    Definition Classes
    Iterator
  48. def filterNot(p: (Imports.DBObject) ⇒ Boolean): Iterator[Imports.DBObject]

    Permalink
    Definition Classes
    Iterator
  49. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  50. def find(p: (Imports.DBObject) ⇒ Boolean): Option[Imports.DBObject]

    Permalink
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  51. def flatMap[B](f: (Imports.DBObject) ⇒ GenTraversableOnce[B]): Iterator[B]

    Permalink
    Definition Classes
    Iterator
  52. def fold[A1 >: Imports.DBObject](z: A1)(op: (A1, A1) ⇒ A1): A1

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  53. def foldLeft[B](z: B)(op: (B, Imports.DBObject) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  54. def foldRight[B](z: B)(op: (Imports.DBObject, B) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  55. def forall(p: (Imports.DBObject) ⇒ Boolean): Boolean

    Permalink
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  56. def foreach[U](f: (Imports.DBObject) ⇒ U): Unit

    Permalink
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  57. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  58. def grouped[B >: Imports.DBObject](size: Int): GroupedIterator[B]

    Permalink
    Definition Classes
    Iterator
  59. def hasDefiniteSize: Boolean

    Permalink
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  60. def hasNext: Boolean

    Permalink

    hasNext

    hasNext

    Is there another element in the cursor?

    <invalid inheritdoc annotation>

    returns

    (Boolean Next)

    Definition Classes
    MongoCursorBase
  61. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  62. def hint(indexName: String): MongoCursor.this.type

    Permalink

    hint

    hint

    Provide the Database a hint of an indexed field of a collection to use to improve performance.

    indexName

    (String) The name of an index

    returns

    the same DBCursor, useful for chaining operations

    Definition Classes
    MongoCursorBase
  63. def hint[A](indexKeys: A)(implicit arg0: (A) ⇒ Imports.DBObject): MongoCursor.this.type

    Permalink

    hint

    hint

    Provide the Database a hint of which indexed fields of a collection to use to improve performance.

    A

    A view of DBObject to use for the indexKeys

    indexKeys

    (A) A DBObject of the index names as keys

    returns

    the same DBCursor, useful for chaining operations

    Definition Classes
    MongoCursorBase
  64. def indexOf[B >: Imports.DBObject](elem: B): Int

    Permalink
    Definition Classes
    Iterator
  65. def indexWhere(p: (Imports.DBObject) ⇒ Boolean): Int

    Permalink
    Definition Classes
    Iterator
  66. def isEmpty: Boolean

    Permalink
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  67. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  68. def isTraversableAgain: Boolean

    Permalink
    Definition Classes
    Iterator → GenTraversableOnce
  69. def keysWanted: Imports.DBObject

    Permalink
    Definition Classes
    MongoCursorBase
  70. def length: Int

    Permalink
    Definition Classes
    Iterator
  71. def limit(n: Int): MongoCursor.this.type

    Permalink

    limit

    limit

    Limits the number of elements returned.

    NOTE: Specifying a negative number instructs the server to retrun that number of items and close the cursor. It will only return what can fit into a single 4MB response

    n

    (Int) The number of elements to return

    returns

    A cursor pointing to the first element of the limited results

    Definition Classes
    MongoCursorBase
    See also

    http://dochub.mongodb.org/core/limit

  72. var log: Logger

    Permalink
    Attributes
    protected[com.mongodb.casbah]
    Definition Classes
    Logging
  73. def map[B](f: (Imports.DBObject) ⇒ B): Iterator[B]

    Permalink
    Definition Classes
    Iterator
  74. def max[B >: Imports.DBObject](implicit cmp: Ordering[B]): Imports.DBObject

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  75. def maxBy[B](f: (Imports.DBObject) ⇒ B)(implicit cmp: Ordering[B]): Imports.DBObject

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  76. def maxTime(maxTime: Duration): MongoCursor

    Permalink

    Set the maximum execution time for operations on this cursor.

    Set the maximum execution time for operations on this cursor.

    maxTime

    the maximum time that the server will allow the query to run, before killing the operation. A non-zero value requires a server version >= 2.6

    returns

    the new cursor

    Since

    2.7

  77. def min[B >: Imports.DBObject](implicit cmp: Ordering[B]): Imports.DBObject

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  78. def minBy[B](f: (Imports.DBObject) ⇒ B)(implicit cmp: Ordering[B]): Imports.DBObject

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  79. def mkString: String

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  80. def mkString(sep: String): String

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  81. def mkString(start: String, sep: String, end: String): String

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  82. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  83. def next(): T

    Permalink

    next

    next

    Iterator increment.

    TODO: The cast to T should be examined for sanity/safety.

    <invalid inheritdoc annotation>

    returns

    The next element in the cursor

    Definition Classes
    MongoCursorBase
  84. def nonEmpty: Boolean

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  85. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  87. def numSeen: Int

    Permalink

    numSeen

    numSeen

    Returns the number of objects through which this cursor has iterated, as tracked by the java driver.

    returns

    The number of objects seen

    Definition Classes
    MongoCursorBase
  88. def one(): Imports.DBObject

    Permalink

    returns

    the first matching document

    Since

    2.7

  89. def option: Int

    Permalink

    Manipulate Query Options

    Manipulate Query Options

    Gets current option settings - see Bytes.QUERYOPTION_* for list

    Definition Classes
    MongoCursorBase
    See also

    com.mongodb.Bytes

    com.mongodb.Mongo

  90. def option_=(option: Int): Unit

    Permalink

    Manipulate Query Options

    Manipulate Query Options

    Adds an option - see Bytes.QUERYOPTION_* for list TODO - Create Scala version of Bytes.QUERYOPTION_*

    Definition Classes
    MongoCursorBase
    See also

    com.mongodb.Bytes

    com.mongodb.Mongo

  91. def options: Int

    Permalink

    Manipulate Query Options

    Manipulate Query Options

    Gets current option settings - see Bytes.QUERYOPTION_* for list

    Definition Classes
    MongoCursorBase
    See also

    com.mongodb.Bytes

    com.mongodb.Mongo

  92. def options_=(opts: Int): Unit

    Permalink

    Manipulate Query Options

    Manipulate Query Options

    Sets current option settings - see Bytes.QUERYOPTION_* for list

    Definition Classes
    MongoCursorBase
    See also

    com.mongodb.Bytes

    com.mongodb.Mongo

  93. def padTo[A1 >: Imports.DBObject](len: Int, elem: A1): Iterator[A1]

    Permalink
    Definition Classes
    Iterator
  94. def partition(p: (Imports.DBObject) ⇒ Boolean): (Iterator[Imports.DBObject], Iterator[Imports.DBObject])

    Permalink
    Definition Classes
    Iterator
  95. def patch[B >: Imports.DBObject](from: Int, patchElems: Iterator[B], replaced: Int): Iterator[B]

    Permalink
    Definition Classes
    Iterator
  96. def product[B >: Imports.DBObject](implicit num: Numeric[B]): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  97. def query: Imports.DBObject

    Permalink
    Definition Classes
    MongoCursorBase
  98. def reduce[A1 >: Imports.DBObject](op: (A1, A1) ⇒ A1): A1

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  99. def reduceLeft[B >: Imports.DBObject](op: (B, Imports.DBObject) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce
  100. def reduceLeftOption[B >: Imports.DBObject](op: (B, Imports.DBObject) ⇒ B): Option[B]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  101. def reduceOption[A1 >: Imports.DBObject](op: (A1, A1) ⇒ A1): Option[A1]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  102. def reduceRight[B >: Imports.DBObject](op: (Imports.DBObject, B) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  103. def reduceRightOption[B >: Imports.DBObject](op: (Imports.DBObject, B) ⇒ B): Option[B]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  104. def resetOptions(): DBCursor

    Permalink

    Manipulate Query Options

    Manipulate Query Options

    Resets options to default.

    Definition Classes
    MongoCursorBase
    See also

    com.mongodb.Bytes

    com.mongodb.Mongo

  105. def reversed: List[Imports.DBObject]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    TraversableOnce
  106. def sameElements(that: Iterator[_]): Boolean

    Permalink
    Definition Classes
    Iterator
  107. def scanLeft[B](z: B)(op: (B, Imports.DBObject) ⇒ B): Iterator[B]

    Permalink
    Definition Classes
    Iterator
  108. def scanRight[B](z: B)(op: (Imports.DBObject, B) ⇒ B): Iterator[B]

    Permalink
    Definition Classes
    Iterator
  109. def seq: Iterator[Imports.DBObject]

    Permalink
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  110. def size: Int

    Permalink

    size

    size

    The DBCursor's count of elements in the query, AFTER the application of skip/limit, passed through from the Java object.

    NOTE: size() takes into account any skip/limit settings on a cursor; it is the size of just the window. If you want to get a count of the entire query ignoring skip/limit you must use count()

    returns

    Int indicating the number of elements returned by the query after skip/limit

    Definition Classes
    MongoCursor → TraversableOnce → GenTraversableOnce
    Exceptions thrown

    MongoException if errors

    See also

    count()

  111. def skip(n: Int): MongoCursor.this.type

    Permalink

    skip

    skip

    Discards a given number of elements at the beginning of the cursor.

    n

    (Int) The number of elements to skip

    returns

    A cursor pointing to the first element of the results

    Definition Classes
    MongoCursorBase
    See also

    http://dochub.mongodb.org/core/skip

  112. def slice(from: Int, until: Int): Iterator[Imports.DBObject]

    Permalink
    Definition Classes
    Iterator
  113. def sliding[B >: Imports.DBObject](size: Int, step: Int): GroupedIterator[B]

    Permalink
    Definition Classes
    Iterator
  114. def snapshot(): MongoCursor.this.type

    Permalink

    Use snapshot mode for the query.

    Use snapshot mode for the query. Snapshot mode prevents the cursor from returning a document more than once because an intervening write operation results in a move of the document. Even in snapshot mode, documents inserted or deleted during the lifetime of the cursor may or may not be returned. Currently, snapshot mode may not be used with sorting or explicit hints.

    returns

    the same DBCursor, useful for chaining operations

    Definition Classes
    MongoCursorBase
  115. def sort[A](orderBy: A)(implicit arg0: (A) ⇒ Imports.DBObject): MongoCursor.this.type

    Permalink

    sort

    sort

    Sort this cursor's elements

    A

    A view of DBObject to sort by

    orderBy

    (A) The fields on which to sort

    returns

    A cursor pointing to the first element of the sorted results

    Definition Classes
    MongoCursorBase
  116. def span(p: (Imports.DBObject) ⇒ Boolean): (Iterator[Imports.DBObject], Iterator[Imports.DBObject])

    Permalink
    Definition Classes
    Iterator
  117. def sum[B >: Imports.DBObject](implicit num: Numeric[B]): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  118. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  119. def take(n: Int): Iterator[Imports.DBObject]

    Permalink
    Definition Classes
    Iterator
  120. def takeWhile(p: (Imports.DBObject) ⇒ Boolean): Iterator[Imports.DBObject]

    Permalink
    Definition Classes
    Iterator
  121. def to[Col[_]](implicit cbf: CanBuildFrom[Nothing, Imports.DBObject, Col[Imports.DBObject]]): Col[Imports.DBObject]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  122. def toArray[B >: Imports.DBObject](implicit arg0: ClassTag[B]): Array[B]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  123. def toBuffer[B >: Imports.DBObject]: Buffer[B]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  124. def toIndexedSeq: IndexedSeq[Imports.DBObject]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  125. def toIterable: Iterable[Imports.DBObject]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  126. def toIterator: Iterator[Imports.DBObject]

    Permalink
    Definition Classes
    Iterator → GenTraversableOnce
  127. def toList: List[Imports.DBObject]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  128. def toMap[T, U](implicit ev: <:<[Imports.DBObject, (T, U)]): Map[T, U]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  129. def toSeq: Seq[Imports.DBObject]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  130. def toSet[B >: Imports.DBObject]: Set[B]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  131. def toStream: Stream[Imports.DBObject]

    Permalink
    Definition Classes
    Iterator → GenTraversableOnce
  132. def toString(): String

    Permalink
    Definition Classes
    Iterator → AnyRef → Any
  133. def toTraversable: Traversable[Imports.DBObject]

    Permalink
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  134. def toVector: Vector[Imports.DBObject]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  135. val underlying: DBCursor

    Permalink

    (com.mongodb.DBCursor)

    (com.mongodb.DBCursor)

    Definition Classes
    MongoCursorMongoCursorBase
  136. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  139. def withFilter(p: (Imports.DBObject) ⇒ Boolean): Iterator[Imports.DBObject]

    Permalink
    Definition Classes
    Iterator
  140. def zip[B](that: Iterator[B]): Iterator[(Imports.DBObject, B)]

    Permalink
    Definition Classes
    Iterator
  141. def zipAll[B, A1 >: Imports.DBObject, B1 >: B](that: Iterator[B], thisElem: A1, thatElem: B1): Iterator[(A1, B1)]

    Permalink
    Definition Classes
    Iterator
  142. def zipWithIndex: Iterator[(Imports.DBObject, Int)]

    Permalink
    Definition Classes
    Iterator

Deprecated Value Members

  1. def slaveOk(): DBCursor

    Permalink

    slaveOk

    slaveOk

    Makes this query OK to run on a non-master node.

    Definition Classes
    MongoCursorBase
    Annotations
    @deprecated @SuppressWarnings()
    Deprecated

    (Since version 2.3.0) Replaced with ReadPreference.SECONDARY

Inherited from Iterator[Imports.DBObject]

Inherited from TraversableOnce[Imports.DBObject]

Inherited from GenTraversableOnce[Imports.DBObject]

Inherited from MongoCursorBase

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped