Package dev.morphia.aggregation.stages


@NonNullApi package dev.morphia.aggregation.stages
Defines the aggregation stages. Access to these types is provided by Aggregation.
See Also:
  • Class
    Description
    Adds new fields to documents.
    Categorizes incoming documents into a specific number of groups, called buckets, based on a specified expression.
    Categorizes incoming documents into groups, called buckets, based on a specified expression and bucket boundaries.
    Returns a Change Stream cursor on a collection, a database, or an entire cluster.
    Returns statistics regarding a collection or view.
    Passes a document to the next stage that contains a count of the number of documents input to the stage.
    Returns a stream of documents containing information on active and/or dormant operations as well as inactive sessions that are holding locks as part of a transaction.
    Creates new documents in a sequence of documents where certain values in a field are missing.
    Defines a range.
    Returns literal documents from input values.
    Processes multiple aggregation pipelines within a single stage on the same set of input documents.
    Populates null and missing field values within documents.
    Possible methods for defining fill strategies.
    Outputs documents in order of nearest to farthest from a specified point.
    Performs a recursive search on a collection, with options for restricting the search by recursion depth and query filter.
    Groups input documents by the specified _id expression and for each distinct grouping, outputs a document.
    Defines a group ID
    Returns statistics regarding the use of each index for the collection.
    Limits the number of documents passed to the next stage in the pipeline.
    Performs a left outer join to an unsharded collection in the same database to filter in documents from the “joined” collection for processing.
    Limits the number of documents passed to the next stage in the pipeline.
    Writes the results of the aggregation pipeline to a specified collection.
    Out<O>
    Takes the documents returned by the aggregation pipeline and writes them to a specified collection.
    Returns plan cache information for a collection.
    Passes along the documents with the requested fields to the next stage in the pipeline.
    Restricts the contents of the documents based on information stored in the documents themselves.
    Replaces the input document with the specified document.
    Replaces the input document with the specified document.
    Randomly selects the specified number of documents from its input.
    Adds new fields to documents.
    Performs operations on a specified span of documents in a collection, known as a window, and returns the results based on the chosen window operator.
    Specifies the field(s) to append to the documents in the output returned by the $setWindowFields stage.
    Specifies the window boundaries and parameters.
    Randomly selects the specified number of documents from its input.
    Sorts all input documents and returns them to the pipeline in sorted order.
    The sort types
    Groups incoming documents based on the value of a specified expression, then computes the count of documents in each distinct group.
    Base type for stages.
    Performs a union of two collections; i.e.
    Removes/excludes fields from documents.
    Deconstructs an array field from the input documents to output a document for each element.