o

reactivemongo.api.commands.bson

BSONAggregationFramework

object BSONAggregationFramework extends AggregationFramework[BSONSerializationPack.type]

Annotations
@deprecated
Deprecated

(Since version 0.16.0) Internal: will be made private

Linear Supertypes
AggregationFramework[BSONSerializationPack.type], AggregationPipeline[BSONSerializationPack.type], SortAggregation[BSONSerializationPack.type], SliceAggregation[BSONSerializationPack.type], GroupAggregation[BSONSerializationPack.type], ImplicitCommandHelpers[BSONSerializationPack.type], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BSONAggregationFramework
  2. AggregationFramework
  3. AggregationPipeline
  4. SortAggregation
  5. SliceAggregation
  6. GroupAggregation
  7. ImplicitCommandHelpers
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. case class AddFields(specifications: P.Document) extends PipelineOperator with Product with Serializable

    $addFields stage.

    $addFields stage.

    specifications

    The fields to include. The resulting objects will also contain these fields.

    Definition Classes
    AggregationFramework
    Since

    MongoDB 3.4

  2. case class Bucket(groupBy: P.Value, boundaries: Seq[P.Value], default: String)(output: (String, AggregationFramework.GroupFunction)*) extends PipelineOperator with Product with Serializable

    $bucket aggregation stage.

    $bucket aggregation stage.

    Definition Classes
    AggregationFramework
  3. case class BucketAuto(groupBy: P.Value, buckets: Int, granularity: Option[String])(output: (String, AggregationFramework.GroupFunction)*) extends PipelineOperator with Product with Serializable

    $bucket aggregation stage.

    $bucket aggregation stage.

    Definition Classes
    AggregationFramework
    Since

    MongoDB 3.4 Categorizes incoming documents into a specific number of groups, called buckets, based on a specified expression. Bucket boundaries are automatically determined in an attempt to evenly distribute the documents into the specified number of buckets. Document fields identifier must be prefixed with $.

  4. final class ChangeStream extends PipelineOperator

    Low level pipeline operator which allows to open a tailable cursor against subsequent change events of a given collection.

    Low level pipeline operator which allows to open a tailable cursor against subsequent change events of a given collection.

    For common use-cases, you might prefer to use the watch operator on a collection.

    Note: the target mongo instance MUST be a replica-set (even in the case of a single node deployement).

    Definition Classes
    AggregationFramework
    Since

    MongoDB 3.6

  5. case class CollStats(latencyStatsHistograms: Boolean, storageStatsScale: Option[Double], count: Boolean) extends Product with Serializable

    $collStats aggregation stage.

    $collStats aggregation stage.

    Definition Classes
    AggregationFramework
  6. case class Count(outputName: String) extends PipelineOperator with Product with Serializable

    $count of the number of documents input.

    $count of the number of documents input.

    outputName

    the name of the output field which has the count as its value

    Definition Classes
    AggregationFramework
    Since

    MongoDB 3.4

  7. case class CurrentOp(allUsers: Boolean = false, idleConnections: Boolean = false, idleCursors: Boolean = false, idleSessions: Boolean = true, localOps: Boolean = false) extends PipelineOperator with Product with Serializable

    $currentOp.

    allUsers

    (Defaults to false)

    idleConnections

    if set to true, all operations including idle connections will be returned (Defaults to false)

    idleCursors

    (Defaults to false; new in 4.2)

    idleSessions

    (Defaults to true; new in 4.0)

    localOps

    (Defaults to false; new in 4.0)

    Definition Classes
    AggregationFramework
    Since

    MongoDB 3.6

  8. case class Facet(specifications: Iterable[(String, AggregationFramework.Pipeline)]) extends PipelineOperator with Product with Serializable

    Processes multiple aggregation pipelines within a single stage on the same set of input documents.

    Processes multiple aggregation pipelines within a single stage on the same set of input documents.

    Each sub-pipeline has its own field in the output document where its results are stored as an array of documents.

    specifications

    the subpipelines to run

    Definition Classes
    AggregationFramework
    See also

    https://docs.mongodb.com/manual/reference/operator/aggregation/facet/

  9. class GeoNear extends PipelineOperator with Product with Serializable

    $geoNear aggregation stage, that outputs documents in order of nearest to farthest from a specified point.

    $geoNear aggregation stage, that outputs documents in order of nearest to farthest from a specified point.

    Definition Classes
    AggregationFramework
  10. case class GraphLookup(from: String, startWith: P.Value, connectFromField: String, connectToField: String, as: String, maxDepth: Option[Int] = None, depthField: Option[String] = None, restrictSearchWithMatch: Option[P.Value] = None) extends PipelineOperator with Product with Serializable

    The $graphLookup aggregation stage.

    The $graphLookup aggregation stage.

    from

    the target collection for the $graphLookup operation to search

    startWith

    the expression that specifies the value of the connectFromField with which to start the recursive search

    connectFromField

    the field name whose value $graphLookup uses to recursively match against the connectToField of other documents in the collection

    connectToField

    the field name in other documents against which to match the value of the field specified by the connectFromField parameter

    as

    the name of the array field added to each output document

    maxDepth

    an optional non-negative integral number specifying the maximum recursion depth

    depthField

    an optional name for a field to add to each traversed document in the search path

    restrictSearchWithMatch

    an optional filter expression

    Definition Classes
    AggregationFramework
    Since

    MongoDB 3.4

  11. case class Group(identifiers: P.Value)(ops: (String, AggregationFramework.GroupFunction)*) extends PipelineOperator with Product with Serializable

    $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 $.

    identifiers

    any BSON value acceptable by mongodb as identifier

    ops

    the sequence of operators specifying aggregate calculation

    Definition Classes
    AggregationFramework
  12. case class GroupField(idField: String)(ops: (String, AggregationFramework.GroupFunction)*) extends PipelineOperator with Product with Serializable

    $groups documents together to calculate aggregates on document collections.

    $groups documents together to calculate aggregates on document collections. This command aggregates on one field.

    idField

    the name of the field to aggregate on

    ops

    the sequence of operators specifying aggregate calculation

    Definition Classes
    AggregationFramework
  13. case class GroupMulti(idFields: (String, String)*)(ops: (String, AggregationFramework.GroupFunction)*) extends PipelineOperator with Product with Serializable

    $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.

    idFields

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

    ops

    the sequence of operators specifying aggregate calculation

    Definition Classes
    AggregationFramework
  14. case class IndexStatAccesses(ops: Long, since: Long) extends Product with Serializable

    ops

    the number of operations that used the index

    since

    the time from which MongoDB gathered the statistics

    Definition Classes
    AggregationFramework
  15. case class IndexStatsResult(name: String, key: P.Document, host: String, accesses: IndexStatAccesses) extends Product with Serializable

    name

    the index name

    key

    the key specification

    host

    the hostname and port of the mongod

    accesses

    the index statistics

    Definition Classes
    AggregationFramework
  16. case class Limit(limit: Int) extends PipelineOperator with Product with Serializable

    $limits the number of documents that pass through the stream.

    $limits the number of documents that pass through the stream.

    limit

    the number of documents to allow through

    Definition Classes
    AggregationFramework
  17. case class ListLocalSessions(expression: P.Document) extends PipelineOperator with Product with Serializable

    $listLocalSessions aggregation stage.

    $listLocalSessions aggregation stage.

    Definition Classes
    AggregationFramework
    Since

    MongoDB 3.6

  18. case class ListSessions(expression: P.Document) extends PipelineOperator with Product with Serializable

    $listSessions aggregation stage.

    $listSessions aggregation stage.

    Definition Classes
    AggregationFramework
    Since

    MongoDB 3.6

  19. case class Lookup(from: String, localField: String, foreignField: String, as: String) extends PipelineOperator with Product with Serializable

    Performs a left outer join to an unsharded collection in the same database to filter in documents from the "joined" collection for processing.

    Performs a left outer join to an unsharded collection in the same database to filter in documents from the "joined" collection for processing.

    from

    the collection to perform the join with

    localField

    the field from the documents input

    foreignField

    the field from the documents in the from collection

    as

    the name of the new array field to add to the input documents

    Definition Classes
    AggregationFramework
    Since

    MongoDB 3.2

  20. case class Match(predicate: P.Document) extends PipelineOperator with Product with Serializable

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

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

    predicate

    the query that documents must satisfy to be in the stream

    Definition Classes
    AggregationFramework
  21. case class Merge(intoDb: String, intoCollection: String, on: Seq[String], whenMatched: Option[String], let: Option[P.Document], whenNotMatched: Option[String]) extends PipelineOperator with Product with Serializable

    $merge aggregation stage.

    $merge aggregation stage.

    intoDb

    the name of the into database

    intoCollection

    the name of the into collection

    Definition Classes
    AggregationFramework
    Since

    MongoDB 4.2

  22. case class Out(collection: String) extends PipelineOperator with Product with Serializable

    Takes the documents returned by the aggregation pipeline and writes them to a specified collection

    Takes the documents returned by the aggregation pipeline and writes them to a specified collection

    collection

    the name of the output collection

    Definition Classes
    AggregationFramework
  23. case class Project(specifications: P.Document) extends PipelineOperator with Product with Serializable

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

    Reshapes a document stream by renaming, adding, or removing fields. Also uses Project to create computed values or sub-objects.

    specifications

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

    Definition Classes
    AggregationFramework
  24. case class Redact(expression: P.Document) extends PipelineOperator with Product with Serializable

    Restricts the contents of the documents based on information stored in the documents themselves.

    Restricts the contents of the documents based on information stored in the documents themselves. http://docs.mongodb.org/manual/reference/operator/aggregation/redact/#pipe._S_redact Redact

    expression

    the redact expression

    Definition Classes
    AggregationFramework
  25. case class ReplaceRoot(newRoot: P.Document) extends PipelineOperator with Product with Serializable

    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

    Definition Classes
    AggregationFramework
  26. case class ReplaceRootField(newRoot: String) extends PipelineOperator with Product with Serializable

    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

    Definition Classes
    AggregationFramework
  27. case class ReplaceWith(replacementDocument: P.Document) extends PipelineOperator with Product with Serializable

    The $replaceWith aggregation stage.

    The $replaceWith aggregation stage.

    Definition Classes
    AggregationFramework
    Since

    MongoDB 4.2

  28. case class Sample(size: Int) extends PipelineOperator with Product with Serializable

    $sample aggregation stage, that randomly selects the specified number of documents from its input.

    $sample aggregation stage, that randomly selects the specified number of documents from its input.

    size

    the number of documents to return

    Definition Classes
    AggregationFramework
  29. case class Set(expression: P.Document) extends PipelineOperator with Product with Serializable

    $set aggregation stage

    $set aggregation stage

    Definition Classes
    AggregationFramework
  30. 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.

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

    skip

    the number of documents to skip

    Definition Classes
    AggregationFramework
  31. case class Sort(fields: AggregationFramework.SortOrder*) extends PipelineOperator with Product with Serializable

    $sorts the stream based on the given fields.

    $sorts the stream based on the given fields.

    fields

    the fields to sort by

    Definition Classes
    AggregationFramework
  32. case class SortByCount(expression: P.Value) extends PipelineOperator with Product with Serializable

    The $sortByCount aggregation stage.

    The $sortByCount aggregation stage.

    Definition Classes
    AggregationFramework
    Since

    MongoDB 3.4

  33. case class SortByFieldCount(field: String) extends PipelineOperator with Product with Serializable

    The $sortByCount aggregation stage.

    The $sortByCount aggregation stage.

    field

    the field name

    Definition Classes
    AggregationFramework
    Since

    MongoDB 3.4

  34. case class Unset(field: String, otherFields: Seq[String]) extends PipelineOperator with Product with Serializable

    The $unset aggregation stage.

    The $unset aggregation stage.

    field

    the field name

    Definition Classes
    AggregationFramework
    Since

    MongoDB 4.2

  35. class Unwind extends PipelineOperator with Product with Serializable
    Definition Classes
    AggregationFramework
  36. case class UnwindField(field: String) extends Unwind with Product with Serializable

    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

    the name of the array to unwind

    Definition Classes
    AggregationFramework
  37. trait ImplicitlyDocumentProducer extends AnyRef
    Definition Classes
    ImplicitCommandHelpers
  38. case class AddFieldToSet extends AggregationFramework.GroupFunction with Product with Serializable

    The $addToSet group accumulator.

    The $addToSet group accumulator.

    Definition Classes
    GroupAggregation
  39. case class AddToSet extends AggregationFramework.GroupFunction with Product with Serializable

    The $addToSet group accumulator.

    The $addToSet group accumulator.

    Definition Classes
    GroupAggregation
  40. case class Ascending extends AggregationFramework.SortOrder with Product with Serializable

    Ascending sort order

    Ascending sort order

    Definition Classes
    SortAggregation
  41. case class Avg extends AggregationFramework.GroupFunction with Product with Serializable

    The $avg group accumulator.

    The $avg group accumulator.

    Definition Classes
    GroupAggregation
  42. case class AvgField extends AggregationFramework.GroupFunction with Product with Serializable

    The $avg group accumulator.

    The $avg group accumulator.

    Definition Classes
    GroupAggregation
  43. case class Descending extends AggregationFramework.SortOrder with Product with Serializable

    Descending sort order

    Descending sort order

    Definition Classes
    SortAggregation
  44. case class First extends AggregationFramework.GroupFunction with Product with Serializable

    The $field group accumulator.

    The $field group accumulator.

    Definition Classes
    GroupAggregation
  45. case class FirstField extends AggregationFramework.GroupFunction with Product with Serializable

    The $field group accumulator.

    The $field group accumulator.

    Definition Classes
    GroupAggregation
  46. sealed trait GroupFunction extends AnyRef

    Represents one of the group/accumulator operators, for the $group aggregation.

    Represents one of the group/accumulator operators, for the $group aggregation. Operation.

    Definition Classes
    GroupAggregation
    See also

    https://docs.mongodb.com/manual/reference/operator/aggregation/group/#accumulator-operator

  47. case class Last extends AggregationFramework.GroupFunction with Product with Serializable

    The $field group accumulator.

    The $field group accumulator.

    Definition Classes
    GroupAggregation
  48. case class LastField extends AggregationFramework.GroupFunction with Product with Serializable

    The $field group accumulator.

    The $field group accumulator.

    Definition Classes
    GroupAggregation
  49. case class Max extends AggregationFramework.GroupFunction with Product with Serializable

    The $max group accumulator.

    The $max group accumulator.

    Definition Classes
    GroupAggregation
  50. case class MaxField extends AggregationFramework.GroupFunction with Product with Serializable

    The $max group accumulator.

    The $max group accumulator.

    Definition Classes
    GroupAggregation
  51. case class MergeObjects extends AggregationFramework.GroupFunction with Product with Serializable

    The $mergeObjects group accumulator.

    The $mergeObjects group accumulator.

    Definition Classes
    GroupAggregation
  52. sealed trait MetadataKeyword extends AnyRef

    Keyword of metadata.

    Definition Classes
    SortAggregation
  53. case class MetadataSort extends AggregationFramework.SortOrder with Product with Serializable

    Metadata sort order.

    Definition Classes
    SortAggregation
  54. case class Min extends AggregationFramework.GroupFunction with Product with Serializable

    The $min group accumulator.

    The $min group accumulator.

    Definition Classes
    GroupAggregation
  55. case class MinField extends AggregationFramework.GroupFunction with Product with Serializable

    The $min group accumulator.

    The $min group accumulator.

    Definition Classes
    GroupAggregation
  56. type Pipeline = (PipelineOperator, List[PipelineOperator])

    Aggregation pipeline (with at least one stage operator)

    Aggregation pipeline (with at least one stage operator)

    Definition Classes
    AggregationPipeline
  57. trait PipelineOperator extends AnyRef

    One of MongoDBs pipeline operators for aggregation.

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

    Definition Classes
    AggregationPipeline
  58. case class Push extends AggregationFramework.GroupFunction with Product with Serializable

    The $push group accumulator.

    The $push group accumulator.

    Definition Classes
    GroupAggregation
  59. case class PushField extends AggregationFramework.GroupFunction with Product with Serializable

    The $push group accumulator.

    The $push group accumulator.

    Definition Classes
    GroupAggregation
  60. final class Slice extends AggregationFramework.PipelineOperator

    Returns a subset of an array.

    Returns a subset of an array. https://docs.mongodb.com/manual/reference/operator/aggregation/slice/

    Definition Classes
    SliceAggregation
  61. sealed trait SortOrder extends AnyRef

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

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

    Definition Classes
    SortAggregation
  62. case class StdDevPop extends AggregationFramework.GroupFunction with Product with Serializable

    The $stdDevPop group accumulator.

    The $stdDevPop group accumulator.

    Definition Classes
    GroupAggregation
    Since

    MongoDB 3.2

  63. case class StdDevPopField extends AggregationFramework.GroupFunction with Product with Serializable

    The $stdDevPop for a single field.

    The $stdDevPop for a single field.

    Definition Classes
    GroupAggregation
    Since

    MongoDB 3.2

  64. case class StdDevSamp extends AggregationFramework.GroupFunction with Product with Serializable

    The $stdDevSamp group accumulator

    The $stdDevSamp group accumulator

    Definition Classes
    GroupAggregation
    Since

    MongoDB 3.2

  65. case class StdDevSampField extends AggregationFramework.GroupFunction with Product with Serializable

    The $stdDevSamp for a single field

    The $stdDevSamp for a single field

    Definition Classes
    GroupAggregation
    Since

    MongoDB 3.2

  66. case class Sum extends AggregationFramework.GroupFunction with Product with Serializable

    The $sum group accumulator.

    The $sum group accumulator.

    Definition Classes
    GroupAggregation
  67. case class SumField extends AggregationFramework.GroupFunction with Product with Serializable

    The $sum group accumulator.

    The $sum group accumulator.

    Definition Classes
    GroupAggregation

Deprecated Type Members

  1. case class Aggregate(pipeline: Seq[AggregationFramework.PipelineOperator], explain: Boolean = false, allowDiskUse: Boolean, cursor: Option[Cursor], wireVersion: MongoWireVersion, bypassDocumentValidation: Boolean, readConcern: Option[ReadConcern]) extends CollectionCommand with CommandWithPack[pack.type] with CommandWithResult[AggregationResult] with Product with Serializable

    pipeline

    the sequence of MongoDB aggregation operations

    explain

    specifies to return the information on the processing of the pipeline

    allowDiskUse

    enables writing to temporary files

    cursor

    the cursor object for aggregation

    bypassDocumentValidation

    available only if you specify the $out aggregation operator

    readConcern

    the read concern

    Definition Classes
    AggregationFramework
    Annotations
    @deprecated
    Deprecated

    (Since version 0.12.7) Use api.collections.Aggregator

    Since

    MongoDB 3.2

  2. case class AggregationResult(firstBatch: List[P.Document], cursor: Option[ResultCursor] = None) extends Product with Serializable

    firstBatch

    the documents of the first batch

    cursor

    the cursor from the result, if any

    Definition Classes
    AggregationFramework
    Annotations
    @deprecated
    Deprecated

    (Since version 0.12.7) Use api.collections.Aggregator

    See also

    Cursor

  3. case class Cursor(batchSize: Int) extends Product with Serializable

    batchSize

    the initial batch size for the cursor

    Definition Classes
    AggregationFramework
    Annotations
    @deprecated
    Deprecated

    (Since version 0.12.7) Use api.collections.Aggregator

  4. case class Filter(input: P.Value, as: String, cond: P.Document) extends PipelineOperator with Product with Serializable

    The $filter aggregation stage.

    The $filter aggregation stage.

    input

    the expression that resolves to an array

    as

    The variable name for the element in the input array. The as expression accesses each element in the input array by this variable.

    cond

    the expression that determines whether to include the element in the resulting array

    Definition Classes
    AggregationFramework
    Annotations
    @deprecated
    Deprecated

    (Since version 0.19.4) Not a pipeline operator (stage)

  5. case class SumValue extends AggregationFramework.GroupFunction with Product with Serializable
    Definition Classes
    GroupAggregation
    Annotations
    @deprecated
    Deprecated

    (Since version 0.12.0) Use SumAll

Value Members

  1. object Filter extends Serializable

    Filter companion

    Filter companion

    Definition Classes
    AggregationFramework
  2. object GeoNear extends Serializable
    Definition Classes
    AggregationFramework
  3. object IndexStats extends PipelineOperator with Product with Serializable

    $indexStats aggregation stage.

    $indexStats aggregation stage.

    Definition Classes
    AggregationFramework
    Since

    MongoDB 3.2

  4. object PlanCacheStats extends PipelineOperator with Product with Serializable

    $planCacheStats aggregation stage.

    $planCacheStats aggregation stage.

    Definition Classes
    AggregationFramework
    Since

    MongoDB 4.2

  5. object Unwind extends Serializable
    Definition Classes
    AggregationFramework
  6. object ImplicitlyDocumentProducer
    Definition Classes
    ImplicitCommandHelpers
  7. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. final def ##(): Int
    Definition Classes
    AnyRef → Any
  9. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. final lazy val builder: Builder[pack.type]
    Attributes
    protected
    Definition Classes
    AggregationFramework
  12. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. val pack: BSONSerializationPack.type
    Definition Classes
    BSONAggregationFramework → AggregationPipeline → ImplicitCommandHelpers
  23. final def pipe(name: String, arg: Value): Document
    Attributes
    protected
    Definition Classes
    AggregationFramework
    Annotations
    @inline()
  24. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  25. def toString(): String
    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  29. object GroupFunction

    Factory to declare custom call to a group function.

    Factory to declare custom call to a group function.

    Definition Classes
    GroupAggregation
  30. object PipelineOperator

    Only for advanced user: Factory for stage not already provided in the API.

    Only for advanced user: Factory for stage not already provided in the API.

    For example for { $sample: { size: 2 } }

    import scala.concurrent.ExecutionContext
    
    import reactivemongo.api.bson.{ BSONDocument, BSONInteger, BSONString }
    import reactivemongo.api.bson.collection.BSONCollection
    
    def foo(coll: BSONCollection)(implicit ec: ExecutionContext) =
      coll.aggregateWith[BSONDocument]() { agg =>
        import agg.PipelineOperator
    
        val stage = PipelineOperator(BSONDocument(
          f"$$sample" -> BSONDocument("size" -> 2)))
    
        stage -> List.empty
      }
    Definition Classes
    AggregationPipeline
  31. object Slice

    import scala.concurrent.ExecutionContext
    
    import reactivemongo.api.bson.{ BSONDocument, BSONInteger, BSONString }
    import reactivemongo.api.bson.collection.BSONCollection
    
    def foo(coll: BSONCollection)(implicit ec: ExecutionContext) = {
      coll.aggregateWith[BSONDocument]() { agg =>
        import agg.{ Project, Slice }
    
        // Define the pipeline stages
        Project(BSONDocument(
          "name" -> 1,
          "favorites" -> Slice(
            array = BSONString(f"$$favorites"),
            n = BSONInteger(3)).makePipe)) -> List.empty
      }
    }
    Definition Classes
    SliceAggregation
  32. object SumAll extends AggregationFramework.GroupFunction with Product with Serializable

    The $sum: 1 group accumulator.

    The $sum: 1 group accumulator.

    Definition Classes
    GroupAggregation
  33. object TextScore extends AggregationFramework.MetadataKeyword with Product with Serializable

    References the score associated with the corresponding $text query for each matching document.

    References the score associated with the corresponding $text query for each matching document.

    Definition Classes
    SortAggregation

Inherited from AggregationPipeline[BSONSerializationPack.type]

Inherited from SortAggregation[BSONSerializationPack.type]

Inherited from SliceAggregation[BSONSerializationPack.type]

Inherited from GroupAggregation[BSONSerializationPack.type]

Inherited from AnyRef

Inherited from Any

Ungrouped