object MongoDbIO
- Alphabetic
- By Inheritance
- MongoDbIO
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
aggregate(src: Collection, pipeline: slamdata.Predef.List[Doc], allowDiskUse: slamdata.Predef.Boolean): MongoDbIO[slamdata.Predef.Unit]
Aggregates documents according to the given aggregation pipeline, which must end with an
$outstage specifying the collection where results may be found. -
def
aggregated(src: Collection, pipeline: slamdata.Predef.List[Doc], allowDiskUse: slamdata.Predef.Boolean): Process[MongoDbIO, BsonDocument]
Returns the stream of results of aggregating documents according to the given aggregation pipeline.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def collectionExists(c: Collection): MongoDbIO[slamdata.Predef.Boolean]
- def collectionStatistics(coll: Collection): MongoDbIO[CollectionStatistics]
-
def
collections: Process[MongoDbIO, Collection]
All discoverable collections on the server.
-
def
collectionsIn(dbName: DatabaseName): Process[MongoDbIO, Collection]
The collections in the named database.
-
def
createCollection(c: Collection): MongoDbIO[slamdata.Predef.Unit]
Creates the given collection.
-
def
databaseNames: Process[MongoDbIO, DatabaseName]
Names of all discoverable databases on the server.
- def dropAllDatabases: MongoDbIO[slamdata.Predef.Unit]
- def dropCollection(c: Collection): MongoDbIO[slamdata.Predef.Unit]
- def dropDatabase(named: DatabaseName): MongoDbIO[slamdata.Predef.Unit]
-
def
ensureCollection(c: Collection): MongoDbIO[slamdata.Predef.Unit]
Ensure the given collection exists, creating it if not.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def fail[A](t: slamdata.Predef.Throwable): MongoDbIO[A]
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
first(coll: Collection): OptionT[MongoDbIO, BsonDocument]
Returns the first document in the collection.
-
def
firstWritableDb(collName: CollectionName): OptionT[MongoDbIO, DatabaseName]
Returns the name of the first database where an insert to the collection having the given name succeeds.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
indexes(coll: Collection): MongoDbIO[slamdata.Predef.Set[Index]]
Set of indexes on a collection, including only simple index types and ignoring the rest.
-
def
insert[F[_]](coll: Collection, docs: F[BsonDocument])(implicit arg0: Foldable[F]): MongoDbIO[slamdata.Predef.Unit]
Inserts the given documents into the collection.
-
def
insertAny[F[_]](coll: Collection, docs: F[BsonDocument])(implicit arg0: Foldable[F]): OptionT[MongoDbIO, slamdata.Predef.Int]
Attempts to insert as many of the given documents into the collection as possible.
Attempts to insert as many of the given documents into the collection as possible. The number of documents inserted is returned, if possible, and may be smaller than the original amount if any documents failed to insert.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val liftTask: ~>[Task, MongoDbIO]
-
def
mapReduce(src: Collection, dst: OutputCollection, cfg: MapReduce): MongoDbIO[slamdata.Predef.Unit]
Executes the map-reduce job described by
cfg, sourcing documents fromsrcand writing the output todst. - implicit val mongoDbInstance: Monad[MongoDbIO] with Catchable[MongoDbIO]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
rename(src: Collection, dst: Collection, semantics: RenameSemantics): MongoDbIO[slamdata.Predef.Unit]
Rename
srctodstusing the given semantics. - def runNT(client: MongoClient): ~>[MongoDbIO, Task]
-
def
serverVersion: MongoDbIO[ServerVersion]
Returns the version of the MongoDB server the client is connected to.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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
- @native() @throws( ... )