Supported Aggregation Pipeline Stages
Atlas Stream Processing extends the aggregation pipeline with stages for processing continuous data streams.
These stages combine with existing aggregation stages built in
to the default mongod
process, enabling you to
perform many of the same operations on continuous data as you can
perform on data-at-rest. An Atlas Stream Processing pipeline definition cannot
exceed 16 MB.
The following table lists the aggregation pipeline stages unique to Atlas Stream Processing and those which exist in modified form in Atlas Stream Processing.
Note
For details on a specific operator, including syntax and examples, click on the link to the operator's reference page.
Aggregation Pipeline Stage | Purpose |
---|---|
Specifies a streaming data source to consume messages from. | |
Validates the documents of a stream against a user-defined schema. | |
Supports | |
Performs a left outer join to a specified collection to filter in documents from the "joined" collection for processing. This version of the existing | |
Assigns documents from a stream to windows with user-defined durations and intervals between start times. | |
Assigns documents from a stream to non-overlapping, continuous windows with user-defined durations. | |
Specifies a stream or time series collection in the connection registry to emit messages to. | |
A version of the existing | |
Runs a pipeline on each "session" of activity in an input stream. Each document is assigned to a session window based on its partition and timestamp. |
Supported Aggregation Pipeline Stages
Atlas Stream Processing provides a number of extensions to the core MongoDB Aggregation Pipeline syntax. To learn more about these extensions, see Supported Aggregation Pipeline Stages.
Certain core aggregation pipeline stages are only supported when nested within other pipeline stages. The following table shows which aggregation pipeline stages are supported for use within the main pipeline or when nested within the specified aggregation pipeline stages.
Aggregation Stage | Supported in Main Pipeline | Supported in $https and $externalFunction | |
---|---|---|---|
√ | √ | √ | |
√ | √ | √ | |
√ | √ | √ | |
√ | √ | √ | |
√ | √ | ||
√ | √ | ||
√ | √ | ||
√ | √ | ||
√ | √ | ||
√ | √ | ||
√ | √ | ||
√ | √ | ||
√ | √ | ||
√ | |||
√ | |||
√ | |||
√ | |||
√ | |||
√ | |||
√ | |||
√ | |||
√ |
[1] | (1, 2) Supported with modified syntax. |