Skip to content

Commit a5d231c

Browse files
authored
query api updates (#165)
1 parent 083c7ce commit a5d231c

File tree

3 files changed

+17
-18
lines changed

3 files changed

+17
-18
lines changed

source/fundamentals/aggregation.txt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Overview
1818
In this guide, you can learn how to use **aggregation operations** in the MongoDB Java driver.
1919

2020
Aggregation operations process data in your MongoDB collections and return computed results. MongoDB's Aggregation
21-
framework is modeled on the concept of data processing pipelines. Documents enter a multi-staged pipeline that
21+
pipeline, part of the Query API, is modeled on the concept of data processing pipelines. Documents enter a multi-staged pipeline that
2222
transforms the documents into an aggregated result.
2323

2424
Another way to think of aggregation is like a car factory. Within the car factory is an assembly line, along which
@@ -117,10 +117,10 @@ Insert the Data
117117
Basic Aggregation Example
118118
~~~~~~~~~~~~~~~~~~~~~~~~~
119119

120-
To perform an aggregation, pass a list of aggregation stages to the
120+
To perform an aggregation, pass a list of aggregation stages to the
121121
``MongoCollection.aggregate()`` method.
122122

123-
The Java driver provides the
123+
The Java driver provides the
124124
`Aggregates <{+api+}/apidocs/mongodb-driver-core/com/mongodb/client/model/Aggregates.html>`__
125125
helper class that contains builders for aggregation stages.
126126

@@ -163,14 +163,14 @@ Explain Aggregation Example
163163
To view information about how MongoDB executes your operation, use the
164164
``explain()`` method of the ``AggregateIterable`` class. The ``explain()``
165165
method returns **execution plans** and performance statistics. An execution
166-
plan is a potential way MongoDB can complete an operation.
166+
plan is a potential way MongoDB can complete an operation.
167167
The ``explain()`` method provides both the winning plan (the plan MongoDB
168-
executed) and rejected plans.
168+
executed) and rejected plans.
169169

170170
.. include:: /includes/fundamentals/explain-verbosity.rst
171171

172172
In the following example, we print the JSON representation of the
173-
winning plans for aggregation stages that produce execution plans:
173+
winning plans for aggregation stages that produce execution plans:
174174

175175
.. literalinclude:: /includes/fundamentals/code-snippets/AggTour.java
176176
:language: java
@@ -183,13 +183,13 @@ The preceding code snippet should produce the following output:
183183
.. code-block:: none
184184
:copyable: false
185185

186-
{ "stage": "PROJECTION_SIMPLE",
186+
{ "stage": "PROJECTION_SIMPLE",
187187
"transformBy": {"stars": 1, "_id": 0},
188188
"inputStage": {
189-
"stage": "COLLSCAN",
189+
"stage": "COLLSCAN",
190190
"filter": {
191-
"categories": {"$eq":"bakery"}},
192-
"direction": "forward"}}
191+
"categories": {"$eq":"bakery"}},
192+
"direction": "forward"}}
193193

194194
For more information about the topics mentioned in this section, see the
195195
following resources:
@@ -203,7 +203,7 @@ following resources:
203203
Aggregation Expression Example
204204
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
205205

206-
The Java driver provides builders for accumulator expressions for use with
206+
The Java driver provides builders for accumulator expressions for use with
207207
``$group``. You must declare all other expressions in JSON format or
208208
compatible document format.
209209

source/fundamentals/indexes.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Indexes also:
3333

3434
Indexes are also used by update operations when finding the documents to update, delete operations when finding the
3535
documents to delete, and by :manual:`certain stages </core/aggregation-pipeline/#pipeline-operators-and-indexes>` in
36-
the aggregation framework.
36+
the aggregation pipeline.
3737

3838
Query Coverage and Performance
3939
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

source/fundamentals/time-series.txt

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Overview
1414
--------
1515

1616
In this guide, you can learn about **time series collections** in
17-
MongoDB, and how to interact with them in the MongoDB Java driver.
17+
MongoDB, and how to interact with them in the MongoDB Java driver.
1818

1919
Time series collections efficiently store sequences of measurements over
2020
a period of time. Time series data consists of any data collected over
@@ -26,7 +26,7 @@ measurement.
2626
:header-rows: 1
2727
:stub-columns: 1
2828

29-
* - Example
29+
* - Example
3030
- Measurement
3131
- Metadata
3232

@@ -43,7 +43,7 @@ Create a Time Series Collection
4343

4444
To create a time series collection, pass the following parameters to the
4545
`createCollection() <{+api+}/apidocs/mongodb-driver-sync/com/mongodb/client/MongoDatabase.html#createCollection(java.lang.String,com.mongodb.client.model.CreateCollectionOptions)>`__
46-
method:
46+
method:
4747

4848
- The name of the new collection to create
4949
- The `TimeSeriesOptions <{+api+}/apidocs/mongodb-driver-core/com/mongodb/client/model/TimeSeriesOptions.html>`__ for creating the collection in a `CreateCollectionOptions <{+api+}/apidocs/mongodb-driver-core/com/mongodb/client/model/CreateCollectionOptions.html>`__ object
@@ -96,12 +96,11 @@ Query a Time Series Collection
9696

9797
To query in a time series collection, use the same conventions as you
9898
would for :doc:`retrieving </fundamentals/crud/read-operations/retrieve>`
99-
and :ref:`aggregating data <java-aggregation>`.
99+
and :ref:`aggregating data <java-aggregation>`.
100100

101101
.. note:: Window Functions
102102

103103
MongoDB version 5.0 introduces window functions into the aggregation
104-
framework. You can use window functions to perform operations on a
104+
pipeline. You can use window functions to perform operations on a
105105
contiguous span of time series data. For more information, see our
106106
:ref:`Aggregates Builders guide <builders-aggregates-setWindowFields>`.
107-

0 commit comments

Comments
 (0)