File tree Expand file tree Collapse file tree 1 file changed +2
-33
lines changed Expand file tree Collapse file tree 1 file changed +2
-33
lines changed Original file line number Diff line number Diff line change @@ -57,39 +57,8 @@ Aggregation operations have some :manual:`limitations <core/aggregation-pipeline
5757 The :manual:`$graphLookup </operator/aggregation/graphLookup/>` stage has a strict memory limit of 100 megabytes
5858 and will ignore ``allowDiskUse``.
5959
60-
61- Illustrated Example
62- ~~~~~~~~~~~~~~~~~~~
63-
64- In the following animation, every document in the collection enters the pipeline and is first filtered by
65- the ``$match`` stage. In this example, the stage selectively matches documents that are either "red" or "blue",
66- filtering "green" documents out. The documents continue flowing through the pipeline and enter the ``$project`` stage,
67- which transforms them from squares to circles. Lastly, the documents flow into the ``$group`` stage, configured to
68- produce the ratio of red to blue circles.
69-
70- .. figure:: /figures/agg_factory.gif
71- :border:
72- :alt: Animation showing how the aggregation pipeline works, conceptually.
73-
74-
75- Using the **Aggregation builders** API, the same operation may look something like:
76-
77- .. literalinclude:: /includes/fundamentals/code-snippets/AggFactory.java
78- :language: java
79- :copyable: false
80- :dedent:
81- :start-after: begin aggregation
82- :end-before: end aggregation
83-
84- Which will produce output similar to the following:
85-
86- .. code-block:: none
87- :copyable: false
88-
89- {"_id": 0, "red": 3, "blue": 2}
90-
91- Useful Links
92- ~~~~~~~~~~~~
60+ Useful References
61+ ~~~~~~~~~~~~~~~~~
9362
9463- :manual:`Aggregation pipeline </core/aggregation-pipeline/>`
9564- :manual:`Aggregation stages </meta/aggregation-quick-reference/#stages>`
You can’t perform that action at this time.
0 commit comments