Skip to content

Docsp 18945 - $densify #6131

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions config/redirects
Original file line number Diff line number Diff line change
Expand Up @@ -1797,6 +1797,7 @@ raw: /manual/core/wildcard -> ${base}/manual/core/index-wildcard/

[v3.6-v5.0]: /${version}/reference/operator/aggregation/tsIncrement/ -> ${base}/${version}/reference/operator/aggregation/
[v3.6-v5.0]: /${version}/reference/operator/aggregation/tsSecond/ -> ${base}/${version}/reference/operator/aggregation/
[v3.6-v5.0]: /${version}/reference/operator/aggregation/densify/ -> ${base}/${version}/reference/operator/aggregation/

#
# Redirects for new 5.0 pages
Expand Down
Binary file added source/images/densification-by-partition.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/images/densification-full-range.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions source/includes/extracts-agg-stages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ content: |

Distinct from the :group:`$count` aggregation accumulator.

* - :pipeline:`$densify`

- .. include:: /includes/fact-densify-description.rst

* - :pipeline:`$documents`
- Returns literal documents from input expressions.

Expand Down
2 changes: 2 additions & 0 deletions source/includes/fact-densify-description.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Creates new documents in a sequence of documents where certain values
in a field are missing.
4 changes: 4 additions & 0 deletions source/includes/fact-densify-image-explanation.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- The darker squares represent the original documents in the collection.

- The lighter squares represent the documents created with
:pipeline:`$densify`.
8 changes: 7 additions & 1 deletion source/reference/operator/aggregation-pipeline.txt
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,12 @@ Alphabetical Listing of Stages
* - :pipeline:`$currentOp`

- Returns information on active and/or dormant operations for the
MongoDB deployment. To run, use the :method:`db.aggregate()` method.
MongoDB deployment. To run, use the :method:`db.aggregate()`
method.

* - :pipeline:`$densify`

- .. include:: /includes/fact-densify-description.rst


* - :pipeline:`$facet`
Expand Down Expand Up @@ -325,6 +330,7 @@ Alphabetical Listing of Stages
/reference/operator/aggregation/collStats
/reference/operator/aggregation/count
/reference/operator/aggregation/currentOp
/reference/operator/aggregation/densify
/reference/operator/aggregation/documents
/reference/operator/aggregation/facet
/reference/operator/aggregation/geoNear
Expand Down
Loading