reactivemongo.core

commands

package commands

Content Hierarchy Learn more about scaladoc diagrams
Visibility
  1. Public
  2. All

Type Members

  1. case class AddToSet(field: String) extends GroupFunction with Product with Serializable

  2. trait AdminCommand[Result] extends Command[Result]

    A command that targets the admin database only (administrative commands).

  3. case class Aggregate(collectionName: String, pipeline: Seq[PipelineOperator]) extends Command[Stream[BSONDocument]] with Product with Serializable

    Implements the "aggregation" command, otherwise known as the "Aggregation Framework.

  4. case class Ascending(field: String) extends SortOrder with Product with Serializable

  5. case class Authenticate(user: String, password: String, nonce: String) extends Command[SuccessfulAuthentication] with Product with Serializable

    Authenticate Command.

  6. sealed trait AuthenticationResult extends AnyRef

    an authentication result

  7. case class Avg(field: String) extends GroupFunction with Product with Serializable

  8. trait BSONCommandError extends Exception with CommandError

    A command error that optionally holds the original TraversableBSONDocument

  9. trait BSONCommandResultMaker[Result] extends CommandResultMaker[Result]

  10. case class CappedOptions(size: Long, maxDocuments: Option[Int] = scala.None) extends Product with Serializable

  11. class CollStats extends Command[CollStatsResult]

    Returns a document containing various information about a collection.

  12. case class CollStatsResult(ns: String, count: Int, size: Double, averageObjectSize: Option[Double], storageSize: Double, numExtents: Int, nindexes: Int, lastExtentSize: Int, paddingFactor: Double, systemFlags: Option[Int], userFlags: Option[Int], totalIndexSize: Int, indexSizes: Array[(String, Int)], capped: Boolean, max: Option[Long]) extends Product with Serializable

    Various information about a collection.

  13. trait Command[Result] extends AnyRef

    A MongoDB Command.

  14. trait CommandError extends Exception with ReactiveMongoException

    A generic command error.

  15. trait CommandResultMaker[Result] extends AnyRef

    Handler for deserializing commands results.

  16. class ConvertToCapped extends Command[Boolean]

    Converts a regular collection into a capped one.

  17. case class Count(collectionName: String, query: Option[BSONDocument] = scala.None, fields: Option[BSONDocument] = scala.None) extends Command[Int] with Product with Serializable

    The Count command.

  18. class CreateCollection extends Command[Boolean]

    Creates a collection on the database.

  19. class DefaultCommandError extends Exception with BSONCommandError

    A default command error, which may contain the original BSONDocument of the response.

  20. case class DeleteIndex(collection: String, index: String) extends Command[Int] with Product with Serializable

  21. case class Descending(field: String) extends SortOrder with Product with Serializable

  22. class Drop extends Command[Boolean]

    Drop a collection.

  23. class DropDatabase extends Command[Boolean]

    Drop a database.

  24. class EmptyCapped extends Command[Boolean]

    Empty a capped collection.

  25. case class FailedAuthentication(message: String, originalDocument: Option[BSONDocument]) extends Exception with BSONCommandError with AuthenticationResult with Product with Serializable

    A failed authentication result

  26. case class FindAndModify(collection: String, query: BSONDocument, modify: Modify, upsert: Boolean = false, sort: Option[BSONDocument] = scala.None, fields: Option[BSONDocument] = scala.None) extends Command[Option[BSONDocument]] with Product with Serializable

    FindAndModify command.

  27. case class First(field: String) extends GroupFunction with Product with Serializable

  28. case class GetLastError(j: Boolean = false, w: Option[BSONValue] = scala.None, wtimeout: Int = 0, fsync: Boolean = false) extends Command[LastError] with Product with Serializable

    GetLastError Command.

  29. case class Group(identifiers: BSONValue)(ops: (String, GroupFunction)*) extends PipelineOperator with Product with Serializable

    Groups documents together to calulate aggregates on document collections.

  30. case class GroupField(idField: String)(ops: (String, GroupFunction)*) extends PipelineOperator with Product with Serializable

    Groups documents together to calulate aggregates on document collections.

  31. sealed trait GroupFunction extends AnyRef

    Represents one of the group operators for the "Group" Operation.

  32. case class GroupMulti(idField: (String, String)*)(ops: (String, GroupFunction)*) extends PipelineOperator with Product with Serializable

    Groups documents together to calulate aggregates on document collections.

  33. case class IsMasterResponse(isMaster: Boolean, secondary: Boolean, maxBsonObjectSize: Int, setName: Option[String], hosts: Option[Seq[String]], me: Option[String], tags: Option[BSONDocument]) extends Product with Serializable

    Deserialized IsMaster command response.

  34. case class Last(field: String) extends GroupFunction with Product with Serializable

  35. case class LastError(ok: Boolean, err: Option[String], code: Option[Int], errMsg: Option[String], originalDocument: Option[BSONDocument], updated: Int, updatedExisting: Boolean) extends Exception with DatabaseException with Product with Serializable

    Result of the GetLastError command.

  36. case class Limit(limit: Int) extends PipelineOperator with Product with Serializable

    Limts the number of documents that pass through the stream.

  37. class MakableCommand extends AnyRef

    A makable command, that can produce a request maker ready to be sent to a reactivemongo.core.actors.MongoDBSystem actor.

  38. case class Match(predicate: BSONDocument) extends PipelineOperator with Product with Serializable

    Filters out documents from the stream that do not match the predicate.

  39. case class Max(field: String) extends GroupFunction with Product with Serializable

  40. case class Min(field: String) extends GroupFunction with Product with Serializable

  41. sealed trait Modify extends AnyRef

    A modify operation, part of a FindAndModify command

  42. sealed trait PipelineOperator extends AnyRef

    One of MongoDBs pipeline operators for aggregation.

  43. case class Project(fields: (String, BSONValue)*) extends PipelineOperator with Product with Serializable

    Reshapes a document stream by renaming, adding, or removing fields.

  44. case class Push(field: String) extends GroupFunction with Product with Serializable

  45. case class PushMulti(fields: (String, String)*) extends GroupFunction with Product with Serializable

  46. case class RawCommand(bson: BSONDocument) extends Command[BSONDocument] with Product with Serializable

  47. class RenameCollection extends AdminCommand[Boolean]

    Rename a collection.

  48. case class Skip(skip: Int) extends PipelineOperator with Product with Serializable

    Skips over a number of documents before passing all further documents along the stream.

  49. case class Sort(fields: Seq[SortOrder]) extends PipelineOperator with Product with Serializable

    Sorts the stream based on the given fields.

  50. sealed trait SortOrder extends AnyRef

    Represents that a field should be sorted on, as well as whether it should be ascending or descending.

  51. sealed trait SuccessfulAuthentication extends AuthenticationResult

    A successful authentication result.

  52. case class SumField(field: String) extends GroupFunction with Product with Serializable

  53. case class SumValue(value: Int) extends GroupFunction with Product with Serializable

  54. case class Unwind(field: String) extends PipelineOperator with Product with Serializable

    Turns a document with an array into multiple documents, one document for each element in the array.

  55. case class Update(update: BSONDocument, fetchNewObject: Boolean) extends Modify with Product with Serializable

    Update (part of a FindAndModify command).

  56. case class VerboseSuccessfulAuthentication(db: String, user: String, readOnly: Boolean) extends SuccessfulAuthentication with Product with Serializable

    A verbose successful authentication result (MongoDB >= 2.

Value Members

  1. object Aggregate extends BSONCommandResultMaker[Stream[BSONDocument]] with Serializable

  2. object Authenticate extends BSONCommandResultMaker[SuccessfulAuthentication] with Serializable

    Authentication command's response deserializer.

  3. object CollStatsResult extends BSONCommandResultMaker[CollStatsResult] with Serializable

  4. object CommandError extends Serializable

  5. object Count extends BSONCommandResultMaker[Int] with Serializable

    Deserializer for the Count command.

  6. object FindAndModify extends BSONCommandResultMaker[Option[BSONDocument]] with Serializable

    FindAndModify command deserializer

  7. object Getnonce extends Command[String]

    Getnonce Command.

  8. object IsMaster extends AdminCommand[IsMasterResponse]

    IsMaster Command.

  9. object LastError extends BSONCommandResultMaker[LastError] with Serializable

    Deserializer for GetLastError command result.

  10. object Remove extends Modify

    Remove (part of a FindAndModify command).

  11. object ReplStatus extends AdminCommand[Map[String, BSONValue]]

    ReplSetGetStatus Command.

  12. object SilentSuccessfulAuthentication extends SuccessfulAuthentication

    A silent successful authentication result (MongoDB <= 2.

  13. object Status extends AdminCommand[Map[String, BSONValue]]

    ServerStatus Command.

Ungrouped