com.mongodb.casbah

MongoCollection

class MongoCollection extends MongoCollectionBase with Iterable[DBObject]

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

Source
MongoCollection.scala
Version

2.0, 12/23/10

Since

1.0

Linear Supertypes
Iterable[DBObject], IterableLike[DBObject, Iterable[DBObject]], Equals, GenIterable[DBObject], GenIterableLike[DBObject, Iterable[DBObject]], Traversable[DBObject], GenTraversable[DBObject], GenericTraversableTemplate[DBObject, Iterable], TraversableLike[DBObject, Iterable[DBObject]], GenTraversableLike[DBObject, Iterable[DBObject]], Parallelizable[DBObject, ParIterable[DBObject]], TraversableOnce[DBObject], GenTraversableOnce[DBObject], FilterMonadic[DBObject, Iterable[DBObject]], HasNewBuilder[DBObject, Iterable[DBObject]], MongoCollectionBase, Logging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. MongoCollection
  2. Iterable
  3. IterableLike
  4. Equals
  5. GenIterable
  6. GenIterableLike
  7. Traversable
  8. GenTraversable
  9. GenericTraversableTemplate
  10. TraversableLike
  11. GenTraversableLike
  12. Parallelizable
  13. TraversableOnce
  14. GenTraversableOnce
  15. FilterMonadic
  16. HasNewBuilder
  17. MongoCollectionBase
  18. Logging
  19. AnyRef
  20. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MongoCollection (underlying: DBCollection)

Type Members

  1. type CursorType = MongoCursor

    Definition Classes
    MongoCollectionMongoCollectionBase
  2. type Self = Iterable[DBObject]

    Attributes
    protected
    Definition Classes
    TraversableLike
  3. type T = DBObject

    Definition Classes
    MongoCollectionMongoCollectionBase

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 ++ [B >: DBObject, That] (that: TraversableOnce[B])(implicit bf: CanBuildFrom[Iterable[DBObject], B, That]): That

    Definition Classes
    TraversableLike
    Annotations
    @bridge()
  5. def ++ [B >: DBObject, That] (that: GenTraversableOnce[B])(implicit bf: CanBuildFrom[Iterable[DBObject], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  6. def ++: [B >: DBObject, That] (that: Traversable[B])(implicit bf: CanBuildFrom[Iterable[DBObject], B, That]): That

    Definition Classes
    TraversableLike
  7. def ++: [B >: DBObject, That] (that: TraversableOnce[B])(implicit bf: CanBuildFrom[Iterable[DBObject], B, That]): That

    Definition Classes
    TraversableLike
  8. def += [A] (x: A)(implicit arg0: (A) ⇒ DBObject): WriteResult

    Save an object to the Collection

    Save an object to the Collection

    x

    object to save to the collection

    Definition Classes
    MongoCollectionBase
  9. def -= [A] (x: A)(implicit arg0: (A) ⇒ DBObject): WriteResult

    Remove a matching object from the collection

    Remove a matching object from the collection

    x

    object to remove from the collection

    Definition Classes
    MongoCollectionBase
  10. def /: [B] (z: B)(op: (B, DBObject) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  11. def /:\ [A1 >: DBObject] (z: A1)(op: (A1, A1) ⇒ A1): A1

    Definition Classes
    GenTraversableOnce
  12. def :\ [B] (z: B)(op: (DBObject, B) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  13. def == (arg0: AnyRef): Boolean

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

    Attributes
    final
    Definition Classes
    Any
  15. def _newCursor (cursor: DBCursor): MongoCursor

    _newCursor

    _newCursor

    Utility method which concrete subclasses are expected to implement for creating a new instance of the correct cursor implementation from a Java cursor. Good with cursor calls that return a new cursor. Should figure out the right type to return based on typing setup.

    cursor

    (DBCursor)

    returns

    (MongoCursorBase)

    Definition Classes
    MongoCollectionMongoCollectionBase
  16. def _newInstance (collection: DBCollection): MongoCollection

    _newInstance

    _newInstance

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

    returns

    (this.type)

    Definition Classes
    MongoCollectionMongoCollectionBase
  17. def _typedValue (dbObj: DBObject): Option[DBObject]

    Attributes
    protected
    Definition Classes
    MongoCollectionMongoCollectionBase
  18. def addOption (option: Int): Unit

    Manipulate Network Options

    Manipulate Network Options

    Definition Classes
    MongoCollectionBase
    See also

    com.mongodb.Bytes

    ,

    com.mongodb.Mongo

  19. def addString (b: StringBuilder): StringBuilder

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

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

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

    Definition Classes
    TraversableOnce → GenTraversableOnce
  23. def apply [A] (jo: A, ensureID: Boolean)(implicit arg0: (A) ⇒ DBObject): AnyRef

    Adds the "private" fields _id to an object.

    Adds the "private" fields _id to an object.

    jo

    object to which to add fields

    ensureID

    whether to add an _id field or not

    returns

    the modified object o

    Definition Classes
    MongoCollectionBase
  24. def apply [A] (o: A)(implicit arg0: (A) ⇒ DBObject): AnyRef

    Adds the "private" fields _id to an object.

    Adds the "private" fields _id to an object.

    o

    DBObject to which to add fields

    returns

    the modified parameter object

    Definition Classes
    MongoCollectionBase
  25. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  26. def canEqual (that: Any): Boolean

    Definition Classes
    IterableLike → Equals
  27. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  28. def collect [B, That] (pf: PartialFunction[DBObject, B])(implicit bf: CanBuildFrom[Iterable[DBObject], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  29. def collectFirst [B] (pf: PartialFunction[DBObject, B]): Option[B]

    Definition Classes
    TraversableOnce
  30. def collection (n: String): MongoCollection

    Find a collection that is prefixed with this collection's name.

    Find a collection that is prefixed with this collection's name. A typical use of this might be

       DBCollection users = mongo.getCollection( "wiki" ).getCollection( "users" );
    
    Which is equilalent to
    DBCollection users = mongo.getCollection( "wiki.users" );

    n

    the name of the collection to find

    returns

    the matching collection

    TODO - Make this support type construction

    Definition Classes
    MongoCollectionBase
  31. def companion : GenericCompanion[Iterable]

    Definition Classes
    Iterable → GenIterable → Traversable → GenTraversable → GenericTraversableTemplate
  32. def copyToArray [B >: DBObject] (xs: Array[B], start: Int, len: Int): Unit

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

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

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

    Definition Classes
    TraversableOnce
  36. def count (p: (DBObject) ⇒ Boolean): Int

    Definition Classes
    TraversableOnce → GenTraversableOnce
  37. def count [A, B] (query: A, fields: B)(implicit arg0: (A) ⇒ DBObject, arg1: (B) ⇒ DBObject): Long

    Definition Classes
    MongoCollectionBase
  38. def count [A] (query: A)(implicit arg0: (A) ⇒ DBObject): Long

    Definition Classes
    MongoCollectionBase
  39. def count : Long

    Definition Classes
    MongoCollectionBase
  40. def createIndex [A, B] (keys: A, options: B)(implicit arg0: (A) ⇒ DBObject, arg1: (B) ⇒ DBObject): Unit

    Definition Classes
    MongoCollectionBase
  41. def createIndex [A] (keys: A)(implicit arg0: (A) ⇒ DBObject): Unit

    Forces creation of an index on a set of fields, if one does not already exist.

    Forces creation of an index on a set of fields, if one does not already exist.

    keys

    an object with a key set of the fields desired for the index

    Definition Classes
    MongoCollectionBase
  42. implicit val db : MongoDB

    Returns the database this collection is a member of.

    Returns the database this collection is a member of.

    returns

    this collection's database

    Attributes
    implicit
    Definition Classes
    MongoCollectionBase
  43. def distinct [A] (key: String, query: A)(implicit arg0: (A) ⇒ DBObject): Seq[Any]

    find distinct values for a key

    find distinct values for a key

    query

    query to apply on collection

    Definition Classes
    MongoCollectionBase
  44. def distinct (key: String): Seq[Any]

    find distinct values for a key

    find distinct values for a key

    Definition Classes
    MongoCollectionBase
  45. def drop (n: Int): Iterable[DBObject]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  46. def drop (): Unit

    Drops (deletes) this collection

    Drops (deletes) this collection

    Definition Classes
    MongoCollectionBase
  47. def dropCollection (): Unit

    Drops (deletes) this collection

    Drops (deletes) this collection

    Definition Classes
    MongoCollectionBase
  48. def dropIndex (name: String): Unit

    Definition Classes
    MongoCollectionBase
  49. def dropIndex [A] (keys: A)(implicit arg0: (A) ⇒ DBObject): Unit

    Definition Classes
    MongoCollectionBase
  50. def dropIndexes (name: String): Unit

    Definition Classes
    MongoCollectionBase
  51. def dropIndexes (): Unit

    Drops all indices from this collection

    Drops all indices from this collection

    Definition Classes
    MongoCollectionBase
  52. def dropRight (n: Int): Iterable[DBObject]

    Definition Classes
    IterableLike
  53. def dropWhile (p: (DBObject) ⇒ Boolean): Iterable[DBObject]

    Definition Classes
    TraversableLike → GenTraversableLike
  54. def ensureIndex (name: String): Unit

    Ensures an index on this collection (that is, the index will be created if it does not exist).

    Ensures an index on this collection (that is, the index will be created if it does not exist). ensureIndex is optimized and is inexpensive if the index already exists.

    name

    an identifier for the index

    Definition Classes
    MongoCollectionBase
  55. def ensureIndex [A] (keys: A, name: String, unique: Boolean)(implicit arg0: (A) ⇒ DBObject): Unit

    Ensures an optionally unique index on this collection.

    Ensures an optionally unique index on this collection.

    keys

    fields to use for index

    name

    an identifier for the index

    unique

    if the index should be unique

    Definition Classes
    MongoCollectionBase
  56. def ensureIndex [A] (keys: A, name: String)(implicit arg0: (A) ⇒ DBObject): Unit

    Ensures an index on this collection (that is, the index will be created if it does not exist).

    Ensures an index on this collection (that is, the index will be created if it does not exist). ensureIndex is optimized and is inexpensive if the index already exists.

    keys

    fields to use for index

    name

    an identifier for the index

    Definition Classes
    MongoCollectionBase
  57. def ensureIndex [A] (keys: A)(implicit arg0: (A) ⇒ DBObject): Unit

    Creates an index on a set of fields, if one does not already exist.

    Creates an index on a set of fields, if one does not already exist.

    keys

    an object with a key set of the fields desired for the index

    Definition Classes
    MongoCollectionBase
  58. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  59. def equals (obj: Any): Boolean

    Checks if this collection is equal to another object.

    Checks if this collection is equal to another object.

    returns

    if the two collections are the same object

    Definition Classes
    MongoCollectionBase → AnyRef → Any
  60. def exists (p: (DBObject) ⇒ Boolean): Boolean

    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  61. def filter (p: (DBObject) ⇒ Boolean): Iterable[DBObject]

    Definition Classes
    TraversableLike → GenTraversableLike
  62. def filterNot (p: (DBObject) ⇒ Boolean): Iterable[DBObject]

    Definition Classes
    TraversableLike → GenTraversableLike
  63. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  64. def find (p: (DBObject) ⇒ Boolean): Option[DBObject]

    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  65. def find [A, B] (ref: A, fields: B, numToSkip: Int, batchSize: Int)(implicit arg0: (A) ⇒ DBObject, arg1: (B) ⇒ DBObject): CursorType

    Finds an object.

    Finds an object.

    ref

    query used to search

    fields

    the fields of matching objects to return

    numToSkip

    will not return the first numToSkip matches

    batchSize

    if positive, is the # of objects per batch sent back from the db. all objects that match will be returned. if batchSize < 0, its a hard limit, and only 1 batch will either batchSize or the # that fit in a batch

    returns

    the objects, if found

    Definition Classes
    MongoCollectionBase
  66. def find [A, B] (ref: A, keys: B)(implicit arg0: (A) ⇒ DBObject, arg1: (B) ⇒ DBObject): CursorType

    Queries for an object in this collection.

    Queries for an object in this collection.

    An empty DBObject will match every document in the collection. Regardless of fields specified, the _id fields are always returned.

    An example that returns the "x" and "_id" fields for every document in the collection that has an "x" field:

    BasicDBObject keys = new BasicDBObject();
    keys.put("x", 1);
    
    DBCursor cursor = collection.find(new BasicDBObject(), keys);
    

    ref

    object for which to search

    keys

    fields to return

    returns

    a cursor to iterate over results

    Definition Classes
    MongoCollectionBase
  67. def find [A] (ref: A)(implicit arg0: (A) ⇒ DBObject): CursorType

    Queries for an object in this collection.

    Queries for an object in this collection.

    ref

    object for which to search

    returns

    an iterator over the results

    Definition Classes
    MongoCollectionBase
  68. def find (): CursorType

    Queries for all objects in this collection.

    Queries for all objects in this collection.

    returns

    a cursor which will iterate over every object

    Definition Classes
    MongoCollectionBase
  69. def findAndModify [A, B, C, D] (query: A, fields: B, sort: C, remove: Boolean, update: D, returnNew: Boolean, upsert: Boolean)(implicit arg0: (A) ⇒ DBObject, arg1: (B) ⇒ DBObject, arg2: (C) ⇒ DBObject, arg3: (D) ⇒ DBObject): Option[T]

    Finds the first document in the query and updates it.

    Finds the first document in the query and updates it.

    returns

    the old document

    Definition Classes
    MongoCollectionBase
  70. def findAndModify [A, B, C] (query: A, sort: B, update: C)(implicit arg0: (A) ⇒ DBObject, arg1: (B) ⇒ DBObject, arg2: (C) ⇒ DBObject): Option[T]

    Finds the first document in the query (sorted) and updates it.

    Finds the first document in the query (sorted) and updates it.

    returns

    the old document

    Definition Classes
    MongoCollectionBase
  71. def findAndModify [A, B] (query: A, update: B)(implicit arg0: (A) ⇒ DBObject, arg1: (B) ⇒ DBObject): Option[T]

    Finds the first document in the query (sorted) and updates it.

    Finds the first document in the query (sorted) and updates it. If remove is specified it will be removed. If new is specified then the updated document will be returned, otherwise the old document is returned (or it would be lost forever). You can also specify the fields to return in the document, optionally.

    returns

    (Option[T]) of the the found document (before, or after the update)

    Definition Classes
    MongoCollectionBase
  72. def findAndRemove [A] (query: A)(implicit arg0: (A) ⇒ DBObject): Option[T]

    Finds the first document in the query and removes it.

    Finds the first document in the query and removes it.

    returns

    the removed document

    Definition Classes
    MongoCollectionBase
  73. def findOne [A, B] (o: A, fields: B)(implicit arg0: (A) ⇒ DBObject, arg1: (B) ⇒ DBObject): Option[T]

    Returns a single object from this collection matching the query.

    Returns a single object from this collection matching the query.

    o

    the query object

    fields

    fields to return

    returns

    (Option[T]) Some() of the object found, or None if no such object exists

    Definition Classes
    MongoCollectionBase
  74. def findOne [A] (o: A)(implicit arg0: (A) ⇒ DBObject): Option[T]

    Returns a single object from this collection matching the query.

    Returns a single object from this collection matching the query.

    o

    the query object

    returns

    (Option[T]) Some() of the object found, or None if no such object exists

    Definition Classes
    MongoCollectionBase
  75. def findOne (): Option[T]

    Returns a single object from this collection.

    Returns a single object from this collection.

    returns

    (Option[T]) Some() of the object found, or None if this collection is empty

    Definition Classes
    MongoCollectionBase
  76. def findOneByID [B] (id: AnyRef, fields: B)(implicit arg0: (B) ⇒ DBObject): Option[T]

    Find an object by its ID.

    Find an object by its ID. Finds an object by its id. This compares the passed in value to the _id field of the document.

    Returns a single object from this collection matching the query.

    id

    the id to match

    fields

    fields to return

    returns

    (Option[T]) Some() of the object found, or None if no such object exists

    Definition Classes
    MongoCollectionBase
  77. def findOneByID (id: AnyRef): Option[T]

    Find an object by its ID.

    Find an object by its ID. Finds an object by its id. This compares the passed in value to the _id field of the document.

    Returns a single object from this collection matching the query.

    id

    the id to match

    returns

    (Option[T]) Some() of the object found, or None if no such object exists

    Definition Classes
    MongoCollectionBase
  78. def flatMap [B, That] (f: (DBObject) ⇒ GenTraversableOnce[B])(implicit bf: CanBuildFrom[Iterable[DBObject], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike → FilterMonadic
  79. def flatten [B] (implicit asTraversable: (DBObject) ⇒ TraversableOnce[B]): Traversable[B]

    Definition Classes
    Traversable → GenericTraversableTemplate
    Annotations
    @bridge()
  80. def fold [A1 >: DBObject] (z: A1)(op: (A1, A1) ⇒ A1): A1

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

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

    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  83. def forall (p: (DBObject) ⇒ Boolean): Boolean

    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  84. def foreach [U] (f: (DBObject) ⇒ U): Unit

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike → TraversableOnce → GenTraversableOnce → FilterMonadic
  85. def fullName : String

    Returns the full name of this collection, with the database name as a prefix.

    Returns the full name of this collection, with the database name as a prefix.

    returns

    the name of this collection

    Definition Classes
    MongoCollectionBase
  86. def genericBuilder [B] : Builder[B, Iterable[B]]

    Definition Classes
    GenericTraversableTemplate
  87. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef
  88. def getCollection (n: String): MongoCollection

    Find a collection that is prefixed with this collection's name.

    Find a collection that is prefixed with this collection's name. A typical use of this might be

       DBCollection users = mongo.getCollection( "wiki" ).getCollection( "users" );
    
    Which is equilalent to
    DBCollection users = mongo.getCollection( "wiki.users" );

    n

    the name of the collection to find

    returns

    the matching collection

    TODO - Make this support type construction

    Definition Classes
    MongoCollectionBase
  89. def getCount [A, B] (query: A, fields: B, limit: Long, skip: Long)(implicit arg0: (A) ⇒ DBObject, arg1: (B) ⇒ DBObject): Long

    Returns the number of documents in the collection that match the specified query

    Returns the number of documents in the collection that match the specified query

    query

    query to select documents to count

    fields

    fields to return

    limit

    Max # of fields

    skip

    # of fields to skip

    returns

    number of documents that match query and fields

    Definition Classes
    MongoCollectionBase
  90. def getCount [A, B] (query: A, fields: B)(implicit arg0: (A) ⇒ DBObject, arg1: (B) ⇒ DBObject): Long

    Returns the number of documents in the collection that match the specified query

    Returns the number of documents in the collection that match the specified query

    query

    query to select documents to count

    fields

    fields to return

    returns

    number of documents that match query and fields

    Definition Classes
    MongoCollectionBase
  91. def getCount [A] (query: A)(implicit arg0: (A) ⇒ DBObject): Long

    Returns the number of documents in the collection that match the specified query

    Returns the number of documents in the collection that match the specified query

    query

    query to select documents to count

    returns

    number of documents that match query

    Definition Classes
    MongoCollectionBase
  92. def getCount (): Long

    Returns the number of documents in the collection

    Returns the number of documents in the collection

    returns

    number of documents in the query

    Definition Classes
    MongoCollectionBase
  93. def getDB (): MongoDB

    Returns the database this collection is a member of.

    Returns the database this collection is a member of.

    returns

    this collection's database

    Definition Classes
    MongoCollectionBase
  94. def getFullName (): String

    Returns the full name of this collection, with the database name as a prefix.

    Returns the full name of this collection, with the database name as a prefix.

    returns

    the name of this collection

    Definition Classes
    MongoCollectionBase
  95. def getIndexInfo (): Seq[DBObject]

    Return a list of the indexes for this collection.

    Return a list of the indexes for this collection. Each object in the list is the "info document" from MongoDB

    returns

    list of index documents

    Definition Classes
    MongoCollectionBase
  96. def getLastError (w: Int, wTimeout: Int, fsync: Boolean): CommandResult

    Definition Classes
    MongoCollectionBase
  97. def getLastError (writeConcern: WriteConcern): CommandResult

    Definition Classes
    MongoCollectionBase
  98. def getLastError (): CommandResult

    Gets the the error (if there is one) from the previous operation.

    Gets the the error (if there is one) from the previous operation. The result of this command will look like

    { "err" :  errorMessage  , "ok" : 1.0 }
    

    The value for errorMessage will be null if no error occurred, or a description otherwise.

    Care must be taken to ensure that calls to getLastError go to the same connection as that of the previous operation. See com.mongodb.Mongo.requestStart for more information.

    returns

    DBObject with error and status information

    Definition Classes
    MongoCollectionBase
  99. def getName (): String

    Definition Classes
    MongoCollectionBase
  100. def getObjectClass (): java.lang.Class[_]

    Gets the default class for objects in the collection

    Gets the default class for objects in the collection

    returns

    the class

    Definition Classes
    MongoCollectionBase
  101. def getOptions (): Int

    Manipulate Network Options

    Manipulate Network Options

    Definition Classes
    MongoCollectionBase
    See also

    com.mongodb.Bytes

    ,

    com.mongodb.Mongo

  102. def getStats (): CommandResult

    Definition Classes
    MongoCollectionBase
  103. def getWriteConcern (): WriteConcern

    get the write concern for this database, which is used for writes to any collection in this database.

    get the write concern for this database, which is used for writes to any collection in this database. See the documentation for WriteConcern for more info.

    Definition Classes
    MongoCollectionBase
    See also

    http://www.thebuzzmedia.com/mongodb-single-server-data-durability-guide/

    ,

    WriteConcern

  104. def group [A, B, C] (key: A, cond: B, initial: C, reduce: String, finalize: String)(implicit arg0: (A) ⇒ DBObject, arg1: (B) ⇒ DBObject, arg2: (C) ⇒ DBObject): ArrayBuffer[T]

    Enables you to call group with the finalize parameter (a function that runs on each row of the output for calculations before sending a return) which the Mongo Java driver does not yet support, by sending a direct DBObject command.

    Enables you to call group with the finalize parameter (a function that runs on each row of the output for calculations before sending a return) which the Mongo Java driver does not yet support, by sending a direct DBObject command. Messy, but it works.

    Definition Classes
    MongoCollectionBase
  105. def group [A, B] (key: A, cond: B, function: String)(implicit arg0: (A) ⇒ DBObject, arg1: (B) ⇒ DBObject): Iterable[T]

    Definition Classes
    MongoCollectionBase
  106. def group [A, B] (key: A, cond: B)(implicit arg0: (A) ⇒ DBObject, arg1: (B) ⇒ DBObject): Iterable[T]

    Perform an absurdly simple grouping with no initial object or reduce function.

    Perform an absurdly simple grouping with no initial object or reduce function.

    Definition Classes
    MongoCollectionBase
  107. def group [A, B, C] (key: A, cond: B, initial: C, reduce: String)(implicit arg0: (A) ⇒ DBObject, arg1: (B) ⇒ DBObject, arg2: (C) ⇒ DBObject): Iterable[T]

    Definition Classes
    MongoCollectionBase
  108. def groupBy [K] (f: (DBObject) ⇒ K): Map[K, Iterable[DBObject]]

    Definition Classes
    TraversableLike → GenTraversableLike
  109. def grouped (size: Int): Iterator[Iterable[DBObject]]

    Definition Classes
    IterableLike
  110. def hasDefiniteSize : Boolean

    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  111. def hashCode (): Int

    Definition Classes
    MongoCollectionBase → AnyRef → Any
  112. def head : T

    Definition Classes
    MongoCollection → IterableLike → GenIterableLike → GenericTraversableTemplate → TraversableLike → GenTraversableLike
  113. def headOption : Option[T]

    Definition Classes
    MongoCollection → TraversableLike
  114. def hintFields_= [A] (docs: List[A])(implicit arg0: (A) ⇒ DBObject): Unit

    Set hint fields for this collection.

    Set hint fields for this collection.

    Definition Classes
    MongoCollectionBase
  115. def indexInfo : Seq[DBObject]

    Return a list of the indexes for this collection.

    Return a list of the indexes for this collection. Each object in the list is the "info document" from MongoDB

    returns

    list of index documents

    Definition Classes
    MongoCollectionBase
  116. def init : Iterable[DBObject]

    Definition Classes
    TraversableLike
  117. def inits : Iterator[Iterable[DBObject]]

    Definition Classes
    TraversableLike
  118. def insert [A] (docs: List[A])(implicit arg0: (A) ⇒ DBObject): WriteResult

    Saves document(s) to the database.

    Saves document(s) to the database. if doc doesn't have an _id, one will be added you can get the _id that was added from doc after the insert

    Definition Classes
    MongoCollectionBase
  119. def insert [A] (doc: A, writeConcern: WriteConcern)(implicit arg0: (A) ⇒ DBObject): WriteResult

    Inserts a document into the database.

    Inserts a document into the database. if doc doesn't have an _id, one will be added you can get the _id that was added from doc after the insert

    Definition Classes
    MongoCollectionBase
  120. def insert [A] (docs: Traversable[A], writeConcern: WriteConcern)(implicit arg0: (A) ⇒ DBObject): WriteResult

    Saves document(s) to the database.

    Saves document(s) to the database. if doc doesn't have an _id, one will be added you can get the _id that was added from doc after the insert

    Definition Classes
    MongoCollectionBase
  121. def insert [A] (docs: A*)(implicit arg0: (A) ⇒ DBObject): WriteResult

    Saves document(s) to the database.

    Saves document(s) to the database. if doc doesn't have an _id, one will be added you can get the _id that was added from doc after the insert

    Definition Classes
    MongoCollectionBase
  122. def internalClass_= (path: String, c: Class[_]): Unit

    Definition Classes
    MongoCollectionBase
  123. def isCapped : Boolean

    Definition Classes
    MongoCollectionBase
  124. def isEmpty : Boolean

    Definition Classes
    IterableLike → GenIterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  125. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  126. def isTraversableAgain : Boolean

    Attributes
    final
    Definition Classes
    GenTraversableLike → GenTraversableOnce
  127. def iterator : CursorType

    Definition Classes
    MongoCollectionBase
  128. def last : DBObject

    Definition Classes
    TraversableLike
  129. def lastError (w: Int, wTimeout: Int, fsync: Boolean): CommandResult

    Definition Classes
    MongoCollectionBase
  130. def lastError (writeConcern: WriteConcern): CommandResult

    Definition Classes
    MongoCollectionBase
  131. def lastError (): CommandResult

    Definition Classes
    MongoCollectionBase
  132. def lastOption : Option[DBObject]

    Definition Classes
    TraversableLike
  133. var log : Logger

    Attributes
    protected[casbah]
    Definition Classes
    Logging
  134. def map [B, That] (f: (DBObject) ⇒ B)(implicit bf: CanBuildFrom[Iterable[DBObject], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike → FilterMonadic
  135. def mapReduce (cmd: MapReduceCommand): MapReduceResult

    Definition Classes
    MongoCollectionBase
  136. def mapReduce (mapFunction: JSFunction, reduceFunction: JSFunction, output: MapReduceOutputTarget, query: Option[DBObject] = None, sort: Option[DBObject] = None, limit: Option[Int] = None, finalizeFunction: Option[JSFunction] = None, jsScope: Option[String] = None, verbose: Boolean = false): MapReduceResult

    mapReduce Execute a mapReduce against this collection.

    mapReduce Execute a mapReduce against this collection. NOTE: JSFunction is just a type alias for String

    mapFunction

    (JSFunction) The JavaScript to execute for the map function

    reduceFunction

    (JSFunction) The JavaScript to execute for the reduce function

    Definition Classes
    MongoCollectionBase
  137. def max [B >: DBObject] (implicit cmp: Ordering[B]): DBObject

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

    Definition Classes
    TraversableOnce → GenTraversableOnce
  139. def min [B >: DBObject] (implicit cmp: Ordering[B]): DBObject

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

    Definition Classes
    TraversableOnce → GenTraversableOnce
  141. def mkString : String

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

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

    Definition Classes
    TraversableOnce → GenTraversableOnce
  144. def name : String

    Definition Classes
    MongoCollectionBase
  145. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  146. def newBuilder : Builder[DBObject, Iterable[DBObject]]

    Attributes
    protected[this]
    Definition Classes
    GenericTraversableTemplate → HasNewBuilder
  147. def nonEmpty : Boolean

    Definition Classes
    TraversableOnce → GenTraversableOnce
  148. def notify (): Unit

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

    Attributes
    final
    Definition Classes
    AnyRef
  150. def objectClass : java.lang.Class[_]

    Gets the default class for objects in the collection

    Gets the default class for objects in the collection

    returns

    the class

    Definition Classes
    MongoCollectionBase
  151. def objectClass_= [A <: DBObject] (c: Class[A])(implicit arg0: Manifest[A]): MongoGenericTypedCollection[A]

    setObjectClass

    setObjectClass

    Set a subtype of DBObject which will be used to deserialize documents returned from MongoDB.

    This method will return a new MongoTypedCollection[A] which you should capture if you want explicit casting. Else, this collection will instantiate instances of A but cast them to the current T (DBObject if you have a generic collection)

    A

    A Subtype of DBObject

    c

    (Class[A])

    Definition Classes
    MongoCollectionBase
  152. def options : Int

    Manipulate Network Options

    Manipulate Network Options

    Definition Classes
    MongoCollectionBase
    See also

    com.mongodb.Bytes

    ,

    com.mongodb.Mongo

  153. def par : ParIterable[DBObject]

    Definition Classes
    Parallelizable
  154. def parCombiner : Combiner[DBObject, ParIterable[DBObject]]

    Attributes
    protected[this]
    Definition Classes
    TraversableLike → Parallelizable
  155. def partition (p: (DBObject) ⇒ Boolean): (Iterable[DBObject], Iterable[DBObject])

    Definition Classes
    TraversableLike → GenTraversableLike
  156. def product [B >: DBObject] (implicit num: Numeric[B]): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  157. def reduce [A1 >: DBObject] (op: (A1, A1) ⇒ A1): A1

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

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

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

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

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

    Definition Classes
    TraversableOnce → GenTraversableOnce
  163. def remove [A] (o: A, writeConcern: WriteConcern)(implicit arg0: (A) ⇒ DBObject): WriteResult

    Removes objects from the database collection.

    Removes objects from the database collection.

    o

    the object that documents to be removed must match

    Definition Classes
    MongoCollectionBase
  164. def remove [A] (o: A)(implicit arg0: (A) ⇒ DBObject): WriteResult

    Removes objects from the database collection.

    Removes objects from the database collection.

    o

    the object that documents to be removed must match

    Definition Classes
    MongoCollectionBase
  165. def rename (newName: String, dropTarget: Boolean): MongoCollection

    does a rename of this collection to newName As per the Java API this returns a *NEW* Collection, and the old collection is probably no good anymore.

    does a rename of this collection to newName As per the Java API this returns a *NEW* Collection, and the old collection is probably no good anymore.

    This collection *WILL NOT* mutate --- the instance will still point at a now nonexistant collection with the old name ... You must capture the return value for the new instance.

    newName

    new collection name (not a full namespace)

    dropTarget

    if a collection with the new name exists, whether or not to drop it

    returns

    the new collection

    Definition Classes
    MongoCollectionBase
  166. def rename (newName: String): MongoCollection

    does a rename of this collection to newName As per the Java API this returns a *NEW* Collection, and the old collection is probably no good anymore.

    does a rename of this collection to newName As per the Java API this returns a *NEW* Collection, and the old collection is probably no good anymore.

    This collection *WILL NOT* mutate --- the instance will still point at a now nonexistant collection with the old name ... You must capture the return value for the new instance.

    newName

    new collection name (not a full namespace)

    returns

    the new collection

    Definition Classes
    MongoCollectionBase
  167. def repr : Iterable[DBObject]

    Definition Classes
    TraversableLike → GenTraversableLike
  168. def request (writeConcern: WriteConcern)(op: (MongoCollection.this.type) ⇒ WriteResult): Unit

    write concern aware write op block.

    write concern aware write op block.

    Checks getLastError after the last write. If you run multiple ops you'll only get the final error.

    Your op function gets a copy of this MongoDB instance.

    This is for write ops only - you cannot return data from it.

    Your function must return WriteResult, which is the return type of any mongo write operation like insert/save/update/remove

    Definition Classes
    MongoCollectionBase
  169. def request (w: Int, wTimeout: Int = 0, fsync: Boolean = false)(op: (MongoCollection.this.type) ⇒ WriteResult): Unit

    write concern aware write op block.

    write concern aware write op block.

    Checks getLastError after the last write. If you run multiple ops you'll only get the final error.

    Your op function gets a copy of this MongoDB instance.

    This is for write ops only - you cannot return data from it.

    Your function must return WriteResult, which is the return type of any mongo write operation like insert/save/update/remove

    Definition Classes
    MongoCollectionBase
  170. def request (op: (MongoCollection.this.type) ⇒ WriteResult): Unit

    write concern aware write op block.

    write concern aware write op block.

    Checks getLastError after the last write. If you run multiple ops you'll only get the final error.

    Your op function gets a copy of this MongoDB instance.

    This is for write ops only - you cannot return data from it.

    Your function must return WriteResult, which is the return type of any mongo write operation like insert/save/update/remove

    If you have set a connection or DB level WriteConcern, it will be inherited.

    Definition Classes
    MongoCollectionBase
  171. def resetIndexCache (): Unit

    Clears all indices that have not yet been applied to this collection.

    Clears all indices that have not yet been applied to this collection.

    Definition Classes
    MongoCollectionBase
  172. def resetOptions (): Unit

    Manipulate Network Options

    Manipulate Network Options

    Definition Classes
    MongoCollectionBase
    See also

    com.mongodb.Bytes

    ,

    com.mongodb.Mongo

  173. def reversed : List[DBObject]

    Attributes
    protected[this]
    Definition Classes
    TraversableOnce
  174. def sameElements [B >: DBObject] (that: Iterable[B]): Boolean

    Definition Classes
    IterableLike
    Annotations
    @bridge()
  175. def sameElements [B >: DBObject] (that: GenIterable[B]): Boolean

    Definition Classes
    IterableLike → GenIterableLike
  176. def save [A] (jo: A, writeConcern: WriteConcern)(implicit arg0: (A) ⇒ DBObject): WriteResult

    Saves an object to this collection.

    Saves an object to this collection.

    jo

    the DBObject to save will add _id field to jo if needed TODO - Wrapper for WriteResult?

    Definition Classes
    MongoCollectionBase
  177. def save [A] (jo: A)(implicit arg0: (A) ⇒ DBObject): WriteResult

    Saves an object to this collection.

    Saves an object to this collection.

    jo

    the DBObject to save will add _id field to jo if needed TODO - Wrapper for WriteResult?

    Definition Classes
    MongoCollectionBase
  178. def scan [B >: DBObject, That] (z: B)(op: (B, B) ⇒ B)(implicit cbf: CanBuildFrom[Iterable[DBObject], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  179. def scanLeft [B, That] (z: B)(op: (B, DBObject) ⇒ B)(implicit bf: CanBuildFrom[Iterable[DBObject], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  180. def scanRight [B, That] (z: B)(op: (DBObject, B) ⇒ B)(implicit bf: CanBuildFrom[Iterable[DBObject], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
    Annotations
    @migration
    Migration

  181. def seq : Iterable[DBObject]

    Definition Classes
    Iterable → GenIterable → Traversable → GenTraversable → Parallelizable → TraversableOnce → GenTraversableOnce
  182. def setHintFields [A] (docs: List[A])(implicit arg0: (A) ⇒ DBObject): Unit

    Set hint fields for this collection.

    Set hint fields for this collection.

    Definition Classes
    MongoCollectionBase
  183. def setInternalClass (path: String, c: Class[_]): Unit

    Definition Classes
    MongoCollectionBase
  184. def setObjectClass [A <: DBObject] (c: Class[A])(implicit arg0: Manifest[A]): MongoGenericTypedCollection[A]

    setObjectClass

    setObjectClass

    Set a subtype of DBObject which will be used to deserialize documents returned from MongoDB.

    This method will return a new MongoTypedCollection[A] which you should capture if you want explicit casting. Else, this collection will instantiate instances of A but cast them to the current T (DBObject if you have a generic collection)

    A

    A Subtype of DBObject

    TODO - Ensure proper subtype return

    c

    (Class[A])

    Definition Classes
    MongoCollectionBase
  185. def setWriteConcern (concern: WriteConcern): Unit

    Set the write concern for this database.

    Set the write concern for this database. Will be used for writes to any collection in this database. See the documentation for WriteConcern for more info.

    concern

    (WriteConcern) The write concern to use

    Definition Classes
    MongoCollectionBase
    See also

    http://www.thebuzzmedia.com/mongodb-single-server-data-durability-guide/

    ,

    WriteConcern

  186. def size : Int

    Definition Classes
    TraversableOnce → GenTraversableOnce
  187. def slaveOk (): Unit

    Sets queries to be OK to run on slave nodes.

    Sets queries to be OK to run on slave nodes.

    Definition Classes
    MongoCollectionBase
  188. def slice (from: Int, until: Int): Iterable[DBObject]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  189. def sliding [B >: DBObject] (size: Int, step: Int): Iterator[Iterable[DBObject]]

    Definition Classes
    IterableLike
  190. def sliding [B >: DBObject] (size: Int): Iterator[Iterable[DBObject]]

    Definition Classes
    IterableLike
  191. def span (p: (DBObject) ⇒ Boolean): (Iterable[DBObject], Iterable[DBObject])

    Definition Classes
    TraversableLike → GenTraversableLike
  192. def splitAt (n: Int): (Iterable[DBObject], Iterable[DBObject])

    Definition Classes
    TraversableLike → GenTraversableLike
  193. def stats : CommandResult

    Definition Classes
    MongoCollectionBase
  194. def stringPrefix : String

    Definition Classes
    TraversableLike → GenTraversableLike
  195. def sum [B >: DBObject] (implicit num: Numeric[B]): B

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

    Attributes
    final
    Definition Classes
    AnyRef
  197. def tail : Stream[DBObject]

    Definition Classes
    MongoCollection → TraversableLike → GenTraversableLike
  198. def tails : Iterator[Iterable[DBObject]]

    Definition Classes
    TraversableLike
  199. def take (n: Int): Iterable[DBObject]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  200. def takeRight (n: Int): Iterable[DBObject]

    Definition Classes
    IterableLike
  201. def takeWhile (p: (DBObject) ⇒ Boolean): Iterable[DBObject]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  202. def thisCollection : Iterable[DBObject]

    Attributes
    protected[this]
    Definition Classes
    IterableLike → TraversableLike
  203. def toArray [B >: DBObject] (implicit arg0: ClassManifest[B]): Array[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  204. def toBuffer [B >: DBObject] : Buffer[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  205. def toCollection (repr: Iterable[DBObject]): Iterable[DBObject]

    Attributes
    protected[this]
    Definition Classes
    IterableLike → TraversableLike
  206. def toIndexedSeq [B >: DBObject] : IndexedSeq[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  207. def toIterable : Iterable[DBObject]

    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  208. def toIterator : Iterator[DBObject]

    Definition Classes
    TraversableLike → GenTraversableOnce
  209. def toList : List[DBObject]

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

    Definition Classes
    TraversableOnce → GenTraversableOnce
  211. def toSeq : Seq[DBObject]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  212. def toSet [B >: DBObject] : Set[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  213. def toStream : Stream[DBObject]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableOnce
  214. def toString (): String

    Definition Classes
    TraversableLike → AnyRef → Any
  215. def toTraversable : Traversable[DBObject]

    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  216. def transpose [B] (implicit asTraversable: (DBObject) ⇒ TraversableOnce[B]): Traversable[Traversable[B]]

    Definition Classes
    Traversable → GenericTraversableTemplate
    Annotations
    @bridge()
  217. val underlying : DBCollection

    The underlying Java Mongo Driver Collection object we proxy.

    The underlying Java Mongo Driver Collection object we proxy.

    Definition Classes
    MongoCollectionMongoCollectionBase
  218. def unzip [A1, A2] (implicit asPair: (DBObject) ⇒ (A1, A2)): (Iterable[A1], Iterable[A2])

    Definition Classes
    GenericTraversableTemplate
  219. def unzip3 [A1, A2, A3] (implicit asTriple: (DBObject) ⇒ (A1, A2, A3)): (Iterable[A1], Iterable[A2], Iterable[A3])

    Definition Classes
    GenericTraversableTemplate
  220. def update [A, B] (q: A, o: B, upsert: Boolean, multi: Boolean, writeConcern: WriteConcern)(implicit arg0: (A) ⇒ DBObject, arg1: (B) ⇒ DBObject): WriteResult

    Performs an update operation.

    Performs an update operation.

    q

    search query for old object to update

    o

    object with which to update q

    upsert

    if the database should create the element if it does not exist

    multi

    if the update should be applied to all objects matching (db version 1.1.3 and above)

    writeConcern

    WriteConcern for this operation

    Definition Classes
    MongoCollectionBase
    See also

    http://www.mongodb.org/display/DOCS/Atomic+Operations

  221. def update [A, B] (q: A, o: B, upsert: Boolean, multi: Boolean)(implicit arg0: (A) ⇒ DBObject, arg1: (B) ⇒ DBObject): WriteResult

    Performs an update operation.

    Performs an update operation.

    q

    search query for old object to update

    o

    object with which to update q

    upsert

    if the database should create the element if it does not exist

    multi

    if the update should be applied to all objects matching (db version 1.1.3 and above)

    Definition Classes
    MongoCollectionBase
    See also

    http://www.mongodb.org/display/DOCS/Atomic+Operations

  222. def update [A, B] (q: A, o: B)(implicit arg0: (A) ⇒ DBObject, arg1: (B) ⇒ DBObject): WriteResult

    Performs an update operation.

    Performs an update operation.

    q

    search query for old object to update

    o

    object with which to update q TODO - Wrapper for WriteResult?

    Definition Classes
    MongoCollectionBase
  223. def updateMulti [A, B] (q: A, o: B)(implicit arg0: (A) ⇒ DBObject, arg1: (B) ⇒ DBObject): WriteResult

    Perform a multi update

    Perform a multi update

    q

    search query for old object to update

    o

    object with which to update q

    Definition Classes
    MongoCollectionBase
  224. def view (from: Int, until: Int): IterableView[DBObject, Iterable[DBObject]]

    Definition Classes
    IterableLike → TraversableLike
  225. def view : IterableView[DBObject, Iterable[DBObject]]

    Definition Classes
    IterableLike → TraversableLike
  226. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  229. def withFilter (p: (DBObject) ⇒ Boolean): FilterMonadic[DBObject, Iterable[DBObject]]

    Definition Classes
    TraversableLike → FilterMonadic
  230. def writeConcern : WriteConcern

    get the write concern for this database, which is used for writes to any collection in this database.

    get the write concern for this database, which is used for writes to any collection in this database. See the documentation for WriteConcern for more info.

    Definition Classes
    MongoCollectionBase
    See also

    http://www.thebuzzmedia.com/mongodb-single-server-data-durability-guide/

    ,

    WriteConcern

  231. def writeConcern_= (concern: WriteConcern): Unit

    Set the write concern for this database.

    Set the write concern for this database. Will be used for writes to any collection in this database. See the documentation for WriteConcern for more info.

    concern

    (WriteConcern) The write concern to use

    Definition Classes
    MongoCollectionBase
    See also

    http://www.thebuzzmedia.com/mongodb-single-server-data-durability-guide/

    ,

    WriteConcern

  232. def zip [A1 >: DBObject, B, That] (that: Iterable[B])(implicit bf: CanBuildFrom[Iterable[DBObject], (A1, B), That]): That

    Definition Classes
    IterableLike
    Annotations
    @bridge()
  233. def zip [A1 >: DBObject, B, That] (that: GenIterable[B])(implicit bf: CanBuildFrom[Iterable[DBObject], (A1, B), That]): That

    Definition Classes
    IterableLike → GenIterableLike
  234. def zipAll [B, A1 >: DBObject, That] (that: Iterable[B], thisElem: A1, thatElem: B)(implicit bf: CanBuildFrom[Iterable[DBObject], (A1, B), That]): That

    Definition Classes
    IterableLike
    Annotations
    @bridge()
  235. def zipAll [B, A1 >: DBObject, That] (that: GenIterable[B], thisElem: A1, thatElem: B)(implicit bf: CanBuildFrom[Iterable[DBObject], (A1, B), That]): That

    Definition Classes
    IterableLike → GenIterableLike
  236. def zipWithIndex [A1 >: DBObject, That] (implicit bf: CanBuildFrom[Iterable[DBObject], (A1, Int), That]): That

    Definition Classes
    IterableLike → GenIterableLike
  237. def elements : Iterator[DBObject]

    Definition Classes
    IterableLike
    Annotations
    @deprecated
    Deprecated

    use iterator' instead

  238. def first : DBObject

    Definition Classes
    IterableLike
    Annotations
    @deprecated
    Deprecated

    use head' instead

  239. def firstOption : Option[DBObject]

    Definition Classes
    IterableLike
    Annotations
    @deprecated
    Deprecated

    use headOption' instead

  240. def projection : IterableView[DBObject, Iterable[DBObject]]

    Definition Classes
    IterableLike
    Annotations
    @deprecated
    Deprecated

    use view' instead

Inherited from Iterable[DBObject]

Inherited from IterableLike[DBObject, Iterable[DBObject]]

Inherited from Equals

Inherited from GenIterable[DBObject]

Inherited from GenIterableLike[DBObject, Iterable[DBObject]]

Inherited from Traversable[DBObject]

Inherited from GenTraversable[DBObject]

Inherited from GenericTraversableTemplate[DBObject, Iterable]

Inherited from TraversableLike[DBObject, Iterable[DBObject]]

Inherited from GenTraversableLike[DBObject, Iterable[DBObject]]

Inherited from Parallelizable[DBObject, ParIterable[DBObject]]

Inherited from TraversableOnce[DBObject]

Inherited from GenTraversableOnce[DBObject]

Inherited from FilterMonadic[DBObject, Iterable[DBObject]]

Inherited from HasNewBuilder[DBObject, Iterable[DBObject]]

Inherited from MongoCollectionBase

Inherited from Logging

Inherited from AnyRef

Inherited from Any