Packages

c

mongo4cats.collection.queries

AggregateQueryBuilder

final case class AggregateQueryBuilder[F[_], T] extends QueryBuilder[AggregatePublisher, T] with Product with Serializable

Linear Supertypes
Serializable, Product, Equals, QueryBuilder[AggregatePublisher, T], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AggregateQueryBuilder
  2. Serializable
  3. Product
  4. Equals
  5. QueryBuilder
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def all: F[Iterable[T]]
  5. def allowDiskUse(allowDiskUse: Boolean): AggregateQueryBuilder[F, T]

    Enables writing to temporary files.

    Enables writing to temporary files. A null value indicates that it's unspecified.

    allowDiskUse

    true if writing to temporary files is enabled

    returns

    AggregateQueryBuilder

  6. def applyCommands(): AggregatePublisher[T]
    Attributes
    protected
    Definition Classes
    QueryBuilder
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def batchSize(batchSize: Int): AggregateQueryBuilder[F, T]

    Sets the number of documents to return per batch.

    Sets the number of documents to return per batch.

    Overrides the Subscription#request value for setting the batch size, allowing for fine grained control over the underlying cursor.

    batchSize

    the batch size

    returns

    AggregateQueryBuilder

    Since

    1.8

  9. def boundedStream(capacity: Int): Stream[F, T]
  10. def bypassDocumentValidation(bypassDocumentValidation: Boolean): AggregateQueryBuilder[F, T]

    Sets the bypass document level validation flag.

    Sets the bypass document level validation flag.

    Note: This only applies when an $out stage is specified.

    bypassDocumentValidation

    If true, allows the write to opt-out of document level validation.

    returns

    AggregateQueryBuilder

    Since

    1.2

  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException])
  12. def collation(collation: Collation): AggregateQueryBuilder[F, T]

    Sets the collation options

    Sets the collation options

    A null value represents the server default.

    collation

    the collation options to use

    returns

    AggregateQueryBuilder

    Since

    1.3

  13. val commands: List[AggregateCommand[T]]
    Attributes
    protected
    Definition Classes
    AggregateQueryBuilder → QueryBuilder
  14. def comment(comment: String): AggregateQueryBuilder[F, T]

    Sets the comment to the aggregation.

    Sets the comment to the aggregation.

    comment

    the comment

    returns

    AggregateQueryBuilder

    Since

    1.7

  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def explain(verbosity: ExplainVerbosity): F[Document]

    Explain the execution plan for this operation with the given verbosity level

    Explain the execution plan for this operation with the given verbosity level

    verbosity

    the verbosity of the explanation

    returns

    the execution plan

    Since

    4.2

  17. def explain: F[Document]

    Explain the execution plan for this operation with the server's default verbosity level

    Explain the execution plan for this operation with the server's default verbosity level

    returns

    the execution plan

    Since

    4.2

  18. def first: F[Option[T]]
  19. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. def hint(index: Index): AggregateQueryBuilder[F, T]
  21. def hint(hint: Bson): AggregateQueryBuilder[F, T]

    Sets the hint for which index to use.

    Sets the hint for which index to use.

    hint

    the hint

    returns

    AggregateQueryBuilder

    Since

    1.7

  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. def let(variables: Bson): AggregateQueryBuilder[F, T]

    Add top-level variables to the aggregation.

    Add top-level variables to the aggregation.

    For MongoDB 5.0+, the aggregate command accepts a let option. This option is a document consisting of zero or more fields representing variables that are accessible to the aggregation pipeline. The key is the name of the variable and the value is a constant in the aggregate expression language. Each parameter name is then usable to access the value of the corresponding expression with the "$$" syntax within aggregate expression contexts which may require the use of $expr or a pipeline.

    variables

    the variables

    returns

    AggregateQueryBuilder

    Since

    4.3

  24. def maxAwaitTime(duration: Duration): AggregateQueryBuilder[F, T]

    The maximum amount of time for the server to wait on new documents to satisfy a $changeStream aggregation.

    The maximum amount of time for the server to wait on new documents to satisfy a $changeStream aggregation.

    A zero value will be ignored.

    duration

    the max await time

    returns

    the maximum await execution time in the given time unit

    Since

    1.6

  25. def maxTime(duration: Duration): AggregateQueryBuilder[F, T]

    Sets the maximum execution time on the server for this operation.

    Sets the maximum execution time on the server for this operation.

    duration

    the max time

    returns

    AggregateQueryBuilder

  26. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  29. val observable: AggregatePublisher[T]
    Attributes
    protected
    Definition Classes
    AggregateQueryBuilder → QueryBuilder
  30. def productElementNames: Iterator[String]
    Definition Classes
    Product
  31. def stream: Stream[F, T]
  32. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  33. def toCollection: F[Unit]

    Aggregates documents according to the specified aggregation pipeline, which must end with a $out stage.

    Aggregates documents according to the specified aggregation pipeline, which must end with a $out stage.

    returns

    a unit, that indicates when the operation has completed

  34. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  35. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  36. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from QueryBuilder[AggregatePublisher, T]

Inherited from AnyRef

Inherited from Any

Ungrouped