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
- Alphabetic
- By Inheritance
- MongoCursor
- Iterator
- TraversableOnce
- GenTraversableOnce
- MongoCursorBase
- Logging
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
MongoCursor(underlying: DBCursor)
- underlying
(com.mongodb.DBCursor)
Type Members
-
class
GroupedIterator[B >: A] extends AbstractIterator[Seq[B]] with Iterator[Seq[B]]
- Definition Classes
- Iterator
-
type
T = DBObject
- Definition Classes
- MongoCursor → MongoCursorBase
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
$explain(bool: Boolean = true): MongoCursor.this.type
$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
-
def
$hint[A](obj: A)(implicit arg0: (A) ⇒ Imports.DBObject): MongoCursor.this.type
$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
-
def
$max[A](obj: A)(implicit arg0: (A) ⇒ Imports.DBObject): MongoCursor.this.type
$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
-
def
$maxScan[A](max: T)(implicit arg0: Numeric[A]): MongoCursor.this.type
$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
-
def
$min[A](obj: A)(implicit arg0: (A) ⇒ Imports.DBObject): MongoCursor.this.type
$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
-
def
$orderby[A](obj: A)(implicit arg0: (A) ⇒ Imports.DBObject): MongoCursor.this.type
$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
-
def
$query[A](q: A)(implicit arg0: (A) ⇒ Imports.DBObject): MongoCursor.this.type
$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
-
def
$returnKey(bool: Boolean = true): MongoCursor.this.type
$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
-
def
$showDiskLoc(bool: Boolean = true): MongoCursor.this.type
$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
-
def
$snapshot(bool: Boolean = true): MongoCursor.this.type
$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
-
def
++[B >: Imports.DBObject](that: ⇒ GenTraversableOnce[B]): Iterator[B]
- Definition Classes
- Iterator
-
def
/:[B](z: B)(op: (B, Imports.DBObject) ⇒ B): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
:\[B](z: B)(op: (Imports.DBObject, B) ⇒ B): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
_newInstance(cursor: DBCursor): MongoCursor
_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
- MongoCursor → MongoCursorBase
-
def
addSpecial(name: String, o: Any): MongoCursor.this.type
"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}
-
def
addString(b: StringBuilder): StringBuilder
- Definition Classes
- TraversableOnce
-
def
addString(b: StringBuilder, sep: String): StringBuilder
- Definition Classes
- TraversableOnce
-
def
addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder
- Definition Classes
- TraversableOnce
-
def
aggregate[B](z: ⇒ B)(seqop: (B, Imports.DBObject) ⇒ B, combop: (B, B) ⇒ B): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
batchSize(n: Int): MongoCursorBase
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
-
def
buffered: BufferedIterator[Imports.DBObject]
- Definition Classes
- Iterator
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
close(): Unit
close
close
Kill the current cursor on the server
- Definition Classes
- MongoCursorBase
-
def
collect[B](pf: PartialFunction[Imports.DBObject, B]): Iterator[B]
- Definition Classes
- Iterator
- Annotations
- @migration
- Migration
(Changed in version 2.8.0)
collect
has changed. The previous behavior can be reproduced withtoSeq
.
-
def
collectFirst[B](pf: PartialFunction[Imports.DBObject, B]): Option[B]
- Definition Classes
- TraversableOnce
-
def
contains(elem: Any): Boolean
- Definition Classes
- Iterator
-
def
copy(): MongoCursor
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
- MongoCursor → MongoCursorBase
-
def
copyToArray[B >: Imports.DBObject](xs: Array[B], start: Int, len: Int): Unit
- Definition Classes
- Iterator → TraversableOnce → GenTraversableOnce
-
def
copyToArray[B >: Imports.DBObject](xs: Array[B]): Unit
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
copyToArray[B >: Imports.DBObject](xs: Array[B], start: Int): Unit
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
copyToBuffer[B >: Imports.DBObject](dest: Buffer[B]): Unit
- Definition Classes
- TraversableOnce
-
def
corresponds[B](that: GenTraversableOnce[B])(p: (Imports.DBObject, B) ⇒ Boolean): Boolean
- Definition Classes
- Iterator
-
def
count(p: (Imports.DBObject) ⇒ Boolean): Int
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
count(): Int
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()
-
def
cursorId: Long
cursorId
cursorId
- returns
A long representing the cursorID on the server; 0 = no cursor
- Definition Classes
- MongoCursorBase
-
def
drop(n: Int): Iterator[Imports.DBObject]
- Definition Classes
- Iterator
-
def
dropWhile(p: (Imports.DBObject) ⇒ Boolean): Iterator[Imports.DBObject]
- Definition Classes
- Iterator
-
def
duplicate: (Iterator[Imports.DBObject], Iterator[Imports.DBObject])
- Definition Classes
- Iterator
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
exists(p: (Imports.DBObject) ⇒ Boolean): Boolean
- Definition Classes
- Iterator → TraversableOnce → GenTraversableOnce
-
def
explain: CursorExplanation
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
-
def
filter(p: (Imports.DBObject) ⇒ Boolean): Iterator[Imports.DBObject]
- Definition Classes
- Iterator
-
def
filterNot(p: (Imports.DBObject) ⇒ Boolean): Iterator[Imports.DBObject]
- Definition Classes
- Iterator
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
find(p: (Imports.DBObject) ⇒ Boolean): Option[Imports.DBObject]
- Definition Classes
- Iterator → TraversableOnce → GenTraversableOnce
-
def
flatMap[B](f: (Imports.DBObject) ⇒ GenTraversableOnce[B]): Iterator[B]
- Definition Classes
- Iterator
-
def
fold[A1 >: Imports.DBObject](z: A1)(op: (A1, A1) ⇒ A1): A1
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
foldLeft[B](z: B)(op: (B, Imports.DBObject) ⇒ B): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
foldRight[B](z: B)(op: (Imports.DBObject, B) ⇒ B): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
forall(p: (Imports.DBObject) ⇒ Boolean): Boolean
- Definition Classes
- Iterator → TraversableOnce → GenTraversableOnce
-
def
foreach[U](f: (Imports.DBObject) ⇒ U): Unit
- Definition Classes
- Iterator → TraversableOnce → GenTraversableOnce
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
grouped[B >: Imports.DBObject](size: Int): GroupedIterator[B]
- Definition Classes
- Iterator
-
def
hasDefiniteSize: Boolean
- Definition Classes
- Iterator → TraversableOnce → GenTraversableOnce
-
def
hasNext: Boolean
hasNext
hasNext
Is there another element in the cursor?
<invalid inheritdoc annotation>
- returns
(Boolean Next)
- Definition Classes
- MongoCursorBase
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
def
hint(indexName: String): MongoCursor.this.type
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
-
def
hint[A](indexKeys: A)(implicit arg0: (A) ⇒ Imports.DBObject): MongoCursor.this.type
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
-
def
indexOf[B >: Imports.DBObject](elem: B, from: Int): Int
- Definition Classes
- Iterator
-
def
indexOf[B >: Imports.DBObject](elem: B): Int
- Definition Classes
- Iterator
-
def
indexWhere(p: (Imports.DBObject) ⇒ Boolean, from: Int): Int
- Definition Classes
- Iterator
-
def
indexWhere(p: (Imports.DBObject) ⇒ Boolean): Int
- Definition Classes
- Iterator
-
def
isEmpty: Boolean
- Definition Classes
- Iterator → TraversableOnce → GenTraversableOnce
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isTraversableAgain: Boolean
- Definition Classes
- Iterator → GenTraversableOnce
-
def
keysWanted: Imports.DBObject
- Definition Classes
- MongoCursorBase
-
def
length: Int
- Definition Classes
- Iterator
-
def
limit(n: Int): MongoCursor.this.type
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
-
val
log: Logger
- Attributes
- protected[com.mongodb.casbah]
- Definition Classes
- Logging
- Annotations
- @transient() @volatile()
-
def
map[B](f: (Imports.DBObject) ⇒ B): Iterator[B]
- Definition Classes
- Iterator
-
def
max[B >: Imports.DBObject](implicit cmp: Ordering[B]): Imports.DBObject
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
maxBy[B](f: (Imports.DBObject) ⇒ B)(implicit cmp: Ordering[B]): Imports.DBObject
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
maxTime(maxTime: Duration): MongoCursor
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
-
def
min[B >: Imports.DBObject](implicit cmp: Ordering[B]): Imports.DBObject
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
minBy[B](f: (Imports.DBObject) ⇒ B)(implicit cmp: Ordering[B]): Imports.DBObject
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
mkString: String
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
mkString(sep: String): String
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
mkString(start: String, sep: String, end: String): String
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
next(): T
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
-
def
nonEmpty: Boolean
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
numSeen: Int
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
-
def
one(): Imports.DBObject
- returns
the first matching document
- Since
2.7
-
def
option: Int
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
-
def
option_=(option: Int): Unit
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
-
def
options: Int
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
-
def
options_=(opts: Int): Unit
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
-
def
padTo[A1 >: Imports.DBObject](len: Int, elem: A1): Iterator[A1]
- Definition Classes
- Iterator
-
def
partition(p: (Imports.DBObject) ⇒ Boolean): (Iterator[Imports.DBObject], Iterator[Imports.DBObject])
- Definition Classes
- Iterator
-
def
patch[B >: Imports.DBObject](from: Int, patchElems: Iterator[B], replaced: Int): Iterator[B]
- Definition Classes
- Iterator
-
def
product[B >: Imports.DBObject](implicit num: Numeric[B]): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
query: Imports.DBObject
- Definition Classes
- MongoCursorBase
-
def
reduce[A1 >: Imports.DBObject](op: (A1, A1) ⇒ A1): A1
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
reduceLeft[B >: Imports.DBObject](op: (B, Imports.DBObject) ⇒ B): B
- Definition Classes
- TraversableOnce
-
def
reduceLeftOption[B >: Imports.DBObject](op: (B, Imports.DBObject) ⇒ B): Option[B]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
reduceOption[A1 >: Imports.DBObject](op: (A1, A1) ⇒ A1): Option[A1]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
reduceRight[B >: Imports.DBObject](op: (Imports.DBObject, B) ⇒ B): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
reduceRightOption[B >: Imports.DBObject](op: (Imports.DBObject, B) ⇒ B): Option[B]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
resetOptions(): DBCursor
Manipulate Query Options
Manipulate Query Options
Resets options to default.
- Definition Classes
- MongoCursorBase
- See also
com.mongodb.Bytes
com.mongodb.Mongo
-
def
reversed: List[Imports.DBObject]
- Attributes
- protected[this]
- Definition Classes
- TraversableOnce
-
def
sameElements(that: Iterator[_]): Boolean
- Definition Classes
- Iterator
-
def
scanLeft[B](z: B)(op: (B, Imports.DBObject) ⇒ B): Iterator[B]
- Definition Classes
- Iterator
-
def
scanRight[B](z: B)(op: (Imports.DBObject, B) ⇒ B): Iterator[B]
- Definition Classes
- Iterator
-
def
seq: Iterator[Imports.DBObject]
- Definition Classes
- Iterator → TraversableOnce → GenTraversableOnce
-
def
size: Int
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()
-
def
sizeHintIfCheap: Int
- Attributes
- protected[scala.collection]
- Definition Classes
- GenTraversableOnce
-
def
skip(n: Int): MongoCursor.this.type
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
-
def
slice(from: Int, until: Int): Iterator[Imports.DBObject]
- Definition Classes
- Iterator
-
def
sliceIterator(from: Int, until: Int): Iterator[Imports.DBObject]
- Attributes
- protected
- Definition Classes
- Iterator
-
def
sliding[B >: Imports.DBObject](size: Int, step: Int): GroupedIterator[B]
- Definition Classes
- Iterator
-
def
snapshot(): MongoCursor.this.type
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
-
def
sort[A](orderBy: A)(implicit arg0: (A) ⇒ Imports.DBObject): MongoCursor.this.type
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
-
def
span(p: (Imports.DBObject) ⇒ Boolean): (Iterator[Imports.DBObject], Iterator[Imports.DBObject])
- Definition Classes
- Iterator
-
def
sum[B >: Imports.DBObject](implicit num: Numeric[B]): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
take(n: Int): Iterator[Imports.DBObject]
- Definition Classes
- Iterator
-
def
takeWhile(p: (Imports.DBObject) ⇒ Boolean): Iterator[Imports.DBObject]
- Definition Classes
- Iterator
-
def
to[Col[_]](implicit cbf: CanBuildFrom[Nothing, Imports.DBObject, Col[Imports.DBObject]]): Col[Imports.DBObject]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toArray[B >: Imports.DBObject](implicit arg0: ClassTag[B]): Array[B]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toBuffer[B >: Imports.DBObject]: Buffer[B]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toIndexedSeq: IndexedSeq[Imports.DBObject]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toIterable: Iterable[Imports.DBObject]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toIterator: Iterator[Imports.DBObject]
- Definition Classes
- Iterator → GenTraversableOnce
-
def
toList: List[Imports.DBObject]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toMap[T, U](implicit ev: <:<[Imports.DBObject, (T, U)]): Map[T, U]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toSeq: Seq[Imports.DBObject]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toSet[B >: Imports.DBObject]: Set[B]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toStream: Stream[Imports.DBObject]
- Definition Classes
- Iterator → GenTraversableOnce
-
def
toString(): String
- Definition Classes
- Iterator → AnyRef → Any
-
def
toTraversable: Traversable[Imports.DBObject]
- Definition Classes
- Iterator → TraversableOnce → GenTraversableOnce
-
def
toVector: Vector[Imports.DBObject]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
val
underlying: DBCursor
- Definition Classes
- MongoCursor → MongoCursorBase
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
withFilter(p: (Imports.DBObject) ⇒ Boolean): Iterator[Imports.DBObject]
- Definition Classes
- Iterator
-
def
zip[B](that: Iterator[B]): Iterator[(Imports.DBObject, B)]
- Definition Classes
- Iterator
-
def
zipAll[B, A1 >: Imports.DBObject, B1 >: B](that: Iterator[B], thisElem: A1, thatElem: B1): Iterator[(A1, B1)]
- Definition Classes
- Iterator
-
def
zipWithIndex: Iterator[(Imports.DBObject, Int)]
- Definition Classes
- Iterator
Deprecated Value Members
-
def
slaveOk(): DBCursor
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