Package

reactivemongo.core

commands

Permalink

package commands

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. commands
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

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

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

    Permalink

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

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

    Permalink
  4. sealed trait AuthenticationResult extends AnyRef

    Permalink

    an authentication result

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

    Permalink
  6. trait BSONCommandError extends Exception with CommandError

    Permalink

    A command error that optionally holds the original TraversableBSONDocument

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

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

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

    Permalink

    Various information about a collection.

    Various information about a collection.

    ns

    The fully qualified collection name.

    count

    The number of documents in this collection.

    size

    The size in bytes (or in bytes / scale, if any).

    averageObjectSize

    The average object size in bytes (or in bytes / scale, if any).

    storageSize

    Preallocated space for the collection.

    numExtents

    Number of extents (contiguously allocated chunks of datafile space).

    nindexes

    Number of indexes.

    lastExtentSize

    Size of the most recently created extent.

    paddingFactor

    Padding can speed up updates if documents grow.

    systemFlags

    System flags.

    userFlags

    User flags.

    indexSizes

    Size of specific indexes in bytes.

    capped

    States if this collection is capped.

    max

    The maximum number of documents of this collection, if capped.

  10. trait Command[Result] extends AnyRef

    Permalink

    A MongoDB Command.

    A MongoDB Command.

    Basically, it's as query that is performed on any db.$cmd collection and gives back one document as a result.

  11. trait CommandError extends Exception with ReactiveMongoException

    Permalink

    A generic command error.

  12. trait CommandResultMaker[Result] extends AnyRef

    Permalink

    Handler for deserializing commands results.

    Handler for deserializing commands results.

    Result

    The result type of this command.

  13. class DefaultCommandError extends Exception with BSONCommandError

    Permalink

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

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

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

    Permalink

    A failed authentication result

    A failed authentication result

    message

    the explanation of the error

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

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

    Permalink

    Groups documents together to calculate aggregates on document collections.

    Groups documents together to calculate aggregates on document collections. This command aggregates on arbitrary identifiers. Document fields identifier must be prefixed with $. http://docs.mongodb.org/manual/reference/aggregation/group/#_S_group

    identifiers

    Any BSON value acceptable by mongodb as identifier

    ops

    Sequence of operators specifying aggregate calculation.

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

    Permalink

    Groups documents together to calculate aggregates on document collections.

    Groups documents together to calculate aggregates on document collections. This command aggregates on one field. http://docs.mongodb.org/manual/reference/aggregation/group/#_S_group

    idField

    Name of the field to aggregate on.

    ops

    Sequence of operators specifying aggregate calculation.

  19. sealed trait GroupFunction extends AnyRef

    Permalink

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

    Represents one of the group operators for the "Group" Operation. This class is sealed as these are defined in the MongoDB spec, and clients should not need to customise these.

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

    Permalink

    Groups documents together to calculate aggregates on document collections.

    Groups documents together to calculate aggregates on document collections. This command aggregates on multiple fields, and they must be named. http://docs.mongodb.org/manual/reference/aggregation/group/#_S_group

    idField

    Fields to aggregate on, and the names they should be aggregated under.

    ops

    Sequence of operators specifying aggregate calculation.

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

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

    Permalink

    Limts the number of documents that pass through the stream.

    Limts the number of documents that pass through the stream. http://docs.mongodb.org/manual/reference/aggregation/limit/#_S_limit

    limit

    Number of documents to allow through.

  23. class MakableCommand extends AnyRef

    Permalink

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

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

    Permalink

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

    Filters out documents from the stream that do not match the predicate. http://docs.mongodb.org/manual/reference/aggregation/match/#_S_match

    predicate

    Query that documents must satisfy to be in the stream.

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

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

    Permalink
  27. sealed trait Modify extends AnyRef

    Permalink

    A modify operation, part of a FindAndModify command

  28. sealed trait PipelineOperator extends AnyRef

    Permalink

    One of MongoDBs pipeline operators for aggregation.

    One of MongoDBs pipeline operators for aggregation. Sealed as these are defined in the mongodb spec, and clients should not have custom operators.

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

    Permalink

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

    Reshapes a document stream by renaming, adding, or removing fields. Also use "Project" to create computed values or sub-objects. http://docs.mongodb.org/manual/reference/aggregation/project/#_S_project

    fields

    Fields to include. The resulting objects will contain only these fields

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

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

    Permalink
  32. case class ReplaceRoot(newRoot: BSONDocument) extends PipelineOperator with Product with Serializable

    Permalink

    Promotes a specified document to the top level and replaces all other fields.

    Promotes a specified document to the top level and replaces all other fields. The operation replaces all existing fields in the input document, including the _id field. https://docs.mongodb.com/manual/reference/operator/aggregation/replaceRoot

    newRoot

    The new root object

  33. case class ReplaceRootField(newRoot: String) extends PipelineOperator with Product with Serializable

    Permalink

    Promotes a specified document to the top level and replaces all other fields.

    Promotes a specified document to the top level and replaces all other fields. The operation replaces all existing fields in the input document, including the _id field. https://docs.mongodb.com/manual/reference/operator/aggregation/replaceRoot

    newRoot

    The field name to become the new root

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

    Permalink

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

    Skips over a number of documents before passing all further documents along the stream. http://docs.mongodb.org/manual/reference/aggregation/skip/#_S_skip

    skip

    Number of documents to skip.

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

    Permalink

    Sorts the stream based on the given fields.

    Sorts the stream based on the given fields. http://docs.mongodb.org/manual/reference/aggregation/sort/#_S_sort

    fields

    Fields to sort by.

  36. sealed trait SortOrder extends AnyRef

    Permalink

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

  37. sealed trait SuccessfulAuthentication extends AuthenticationResult

    Permalink

    A successful authentication result.

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

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

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

    Permalink

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

    Turns a document with an array into multiple documents, one document for each element in the array. http://docs.mongodb.org/manual/reference/aggregation/unwind/#_S_unwind

    field

    Name of the array to unwind.

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

    Permalink

    A verbose successful authentication result (MongoDB >= 2.2).

    A verbose successful authentication result (MongoDB >= 2.2).

    Previous versions of MongoDB only return ok = BSONDouble(1.0).

    db

    the database name

    user

    the user name

    readOnly

    states if the authentication gives us only the right to read from the database.

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

    Permalink

    Implements the "aggregation" command, otherwise known as the "Aggregation Framework." http://docs.mongodb.org/manual/applications/aggregation/

    Implements the "aggregation" command, otherwise known as the "Aggregation Framework." http://docs.mongodb.org/manual/applications/aggregation/

    collectionName

    Collection to aggregate against

    pipeline

    Sequence of MongoDB aggregation operations.

    Annotations
    @deprecated
    Deprecated

    (Since version 0.12-RC5) Use reactivemongo.api.collections.GenericCollection.aggregateWith

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

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 0.11.10) See CrAuthenticate

  44. class DropDatabase extends Command[Boolean]

    Permalink

    Drop a database.

    Drop a database.

    Annotations
    @deprecated
    Deprecated

    (Since version 0.11.0) consider using reactivemongo.api.commands.DropDatabase instead

Value Members

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

    Permalink
  2. object CollStatsResult extends BSONCommandResultMaker[CollStatsResult] with Serializable

    Permalink
  3. object CommandError extends Serializable

    Permalink
  4. object GetCrNonce extends Command[String]

    Permalink

    Getnonce Command for Mongo CR authentication.

    Getnonce Command for Mongo CR authentication.

    Gets a nonce for authentication token.

  5. object GroupFunction

    Permalink

    Factory to declare custom call to a group function.

  6. object SilentSuccessfulAuthentication extends SuccessfulAuthentication

    Permalink

    A silent successful authentication result (MongoDB <= 2.0).

Deprecated Value Members

  1. object Getnonce extends Command[String]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 0.11.10) See GetCrNonce

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

    Permalink

    ReplSetGetStatus Command.

    ReplSetGetStatus Command.

    Returns the state of the Replica Set from the target server's point of view.

    Annotations
    @deprecated
    Deprecated

    (Since version 0.11.5) consider using reactivemongo.api.commands.ReplSetGetStatus

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

    Permalink

    ServerStatus Command.

    ServerStatus Command.

    Gets the detailed status of the target server.

    Annotations
    @deprecated
    Deprecated

    (Since version 0.11.5) consider using reactivemongo.api.commands.ServerStatus

Inherited from AnyRef

Inherited from Any

Ungrouped