package casbah
- Alphabetic
- Public
- All
Type Members
-
case class
AggregationOutput
(underlying: mongodb.AggregationOutput) extends Product with Serializable
Wrapper object for AggregationOutput
Wrapper object for AggregationOutput
- Since
2.5
-
trait
BaseImports
extends AnyRef
- Annotations
- @SuppressWarnings()
- case class BulkWriteException (message: String, cause: Throwable, underlying: mongodb.BulkWriteException) extends Exception with Product with Serializable
-
case class
BulkWriteOperation
(underlying: mongodb.BulkWriteOperation) extends Product with Serializable
A builder for a bulk write operation.
A builder for a bulk write operation.
- Since
2.7
- case class BulkWriteResult (underlying: mongodb.BulkWriteResult) extends Product with Serializable
-
case class
Cursor
(underlying: mongodb.Cursor) extends Iterator[casbah.Imports.DBObject] with Product with Serializable
A wrapper for the new com.mongodb.Cursor - which is used when returning a cursor from the aggregation framework.
A wrapper for the new com.mongodb.Cursor - which is used when returning a cursor from the aggregation framework.
- underlying
(com.mongodb.Cursor)
- Version
2.7
-
sealed
class
CursorExplanation
extends casbah.Imports.MongoDBObject
- Version
1.0, 12/15/10
- Since
2.0
- See also
http://dochub.mongodb.org/core/explain
-
trait
Implicits
extends AnyRef
Implicits
object to expose implicit conversions to implementing classes which facilitate more Scala-like functionality in Mongo.Implicits
object to expose implicit conversions to implementing classes which facilitate more Scala-like functionality in Mongo.For classes of
Mongo
(The connection class),DB
,DBCollection
, andDBCursor
, extension methods of asScala are added which will, when invoked, return a Scala-ified wrapper class to replace the Java-driver class it was called on.These scala-ified wrappers do conversions to/from Java datatypes where necessary and will always return Scala types.
Additionally, Collection and Cursors can be called with
asScalaTyped
and a type (either an implicit or explicitly passedManifest
object is used to determine type) to return a Type optimized version of themselves. The type must be a subclass of DBObject, and it is up to YOU the programmer to determine that your underlying collection can be deserialized to objects of type A.Type oriented Collections and Cursors will ALWAYS try to deserialize DBObjects to their type where appropriate (exceptions are things like group and mapReduce which return non-standard data and will be DBObjects)
- trait Imports extends BaseImports with TypeImports with Implicits
-
class
MongoClient
extends AnyRef
Wrapper class for the MongoClient object.
-
case class
MongoClientURI
(underlying: mongodb.MongoClientURI) extends Product with Serializable
Create a new MongoURI with a URI String e.g.:
Create a new MongoURI with a URI String e.g.:
- mongodb://localhost
- mongodb://fred:foobar@localhost/
- mongodb://server1,server2,server3
See http://docs.mongodb.org/manual/reference/connection-string/
- Since
2.5
-
class
MongoCollection
extends MongoCollectionBase with Iterable[casbah.commons.TypeImports.DBObject]
Concrete collection implementation expecting standard DBObject operation This is the version of MongoCollectionBase you should expect to use in most cases.
Concrete collection implementation expecting standard DBObject operation This is the version of MongoCollectionBase you should expect to use in most cases.
- Version
2.0, 12/23/10
- Since
1.0
-
trait
MongoCollectionBase
extends Logging
Scala wrapper for Mongo DBCollections, including ones which return custom DBObject subclasses via setObjectClass and the like.
Scala wrapper for Mongo DBCollections, including ones which return custom DBObject subclasses via setObjectClass and the like. Provides any non-parameterized methods and the basic structure. Requires an underlying object of a DBCollection.
This is a rewrite of the Casbah 1.0 approach which was rather naive and unecessarily complex.... formerly was MongoCollectionWrapper
- Version
2.0, 12/23/10
- Since
1.0
-
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.
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
-
trait
MongoCursorBase
extends Logging
Scala wrapper for Mongo DBCursors, including ones which return custom DBObject subclasses.
Scala wrapper for Mongo DBCursors, including ones which return custom DBObject subclasses.
This is a rewrite of the Casbah 1.0 approach which was rather naive and unnecessarily complex.... formerly was MongoCursorWrapper
- Version
2.0, 12/23/10
- Since
2.0
-
class
MongoDB
extends AnyRef
Wrapper for the Mongo
DB
object providing scala-friendly functionality.Wrapper for the Mongo
DB
object providing scala-friendly functionality.- Since
1.0
- See also
com.mongodb.DB
- class MongoGenericTypedCollection [A <: casbah.commons.TypeImports.DBObject] extends MongoTypedCollection
-
class
MongoGenericTypedCursor
[A <: casbah.Imports.DBObject] extends MongoCursorBase
Concrete cursor implementation for typed Cursor operations via Collection.setObjectClass This is a special case cursor for typed operations.
Concrete cursor implementation for typed Cursor operations via Collection.setObjectClass This is a special case cursor for typed operations.
- A
A Subclass of DBObject
- Version
2.0, 12/23/10
- Since
1.0
-
trait
MongoTypedCollection
extends MongoCollectionBase
Concrete collection implementation for typed Cursor operations via Collection.setObjectClass et al This is a special case collection for typed operations
Concrete collection implementation for typed Cursor operations via Collection.setObjectClass et al This is a special case collection for typed operations
- Version
2.0, 12/23/10
- Since
1.0
-
case class
ParallelScanOptions
(numCursors: Int, batchSize: Int, readPreference: Option[Imports.ReadPreference] = None) extends Product with Serializable
The options to use for a parallel collection scan.
The options to use for a parallel collection scan.
- numCursors
The number of cursors to return, must be greater than 0
- batchSize
The cursor batch size, must be greater than 0 and less than 10001
- readPreference
The optional read preference.
- Since
2.7
- See also
com.monogdb.ParallelScanOptions
- trait TypeImports extends AnyRef
-
class
MongoConnection
extends AnyRef
Wrapper class for the Mongo Connection object.
Wrapper class for the Mongo Connection object.
- Annotations
- @deprecated
- Deprecated
(Since version 2.7) Please use MongoClient
-
class
MongoURI
extends AnyRef
Create a new MongoURI with a URI String e.g.:
Create a new MongoURI with a URI String e.g.:
- mongodb://localhost
- mongodb://fred:foobar@localhost/
- mongodb://server1,server2,server3
- Annotations
- @deprecated @SuppressWarnings()
- Deprecated
(Since version 2.8) Please use MongoClient and MongoClientURI
- Since
2.0
Value Members
-
object
AggregationOptions
Helper object for
com.mongodb.AggregationOptions
Helper object for
com.mongodb.AggregationOptions
- Since
2.7
- object BaseImports extends BaseImports with casbah.commons.BaseImports with casbah.query.BaseImports
- object Implicits extends Implicits with casbah.commons.Implicits with casbah.query.Implicits
- object Imports extends Imports with casbah.commons.Imports with casbah.query.Imports with FluidQueryBarewordOps
-
object
MongoClient
Wrapper object for MongoClient connections, providing the static methods the Java driver gives.
Wrapper object for MongoClient connections, providing the static methods the Java driver gives. Apply methods are called as MongoClient(<params>)
- Since
2.5
-
object
MongoClientOptions
Helper class for creating MongoClientOptions instances
Helper class for creating MongoClientOptions instances
- Since
2.5
- See also
com.mongodb.MongoClientOptions
-
object
MongoClientURI
extends Serializable
MongoClientURI - representing the options to connect to MongoDB
MongoClientURI - representing the options to connect to MongoDB
- Since
2.0
-
object
MongoCollection
extends Logging
Helper object for some static methods
-
object
MongoCredential
Helper class for creating MongoCredential instances
Helper class for creating MongoCredential instances
- Since
2.6
- See also
com.mongodb.MongoCredential
- object MongoCursor extends Logging
-
object
MongoDB
Wrapper for the Mongo
DB
object providing scala-friendly functionality.Wrapper for the Mongo
DB
object providing scala-friendly functionality.- Since
2.0
- See also
com.mongodb.DB
-
object
MongoDBAddress
- Since
1.0.1
-
object
ParallelScanOptions
extends Serializable
The options to use for a parallel collection scan.
The options to use for a parallel collection scan.
- Since
2.7
- See also
com.mongodb.ParallelScanOptions
-
object
ReadPreference
Helper class for creating ReadPreference instances
Helper class for creating ReadPreference instances
- Since
2.2
- See also
JReadPreference
- object TypeImports extends TypeImports with casbah.commons.TypeImports with casbah.query.TypeImports
-
object
WriteConcern
Helper class for creating WriteConcern instances
Helper class for creating WriteConcern instances
- Since
2.0
- See also
JWriteConcern
Deprecated Value Members
-
object
MongoConnection
Wrapper object for Mongo Connections, providing the static methods the Java driver gives.
Wrapper object for Mongo Connections, providing the static methods the Java driver gives. Apply methods are called as MongoConnection(<params>)
- Annotations
- @deprecated
- Deprecated
(Since version 2.7) Please use MongoClient
-
object
MongoOptions
Helper class for creating MongoOptions instances
Helper class for creating MongoOptions instances
- Annotations
- @deprecated
- Deprecated
(Since version 2.7) Please use MongoClient and MongoClientOptions
- Since
2.0
- See also
com.mongodb.MongoOptions
-
object
MongoURI
- Annotations
- @deprecated
- Deprecated
(Since version 2.7) Please use MongoClient and MongoClientURI
- Since
2.0