File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change 4
4
Time Series Data
5
5
================
6
6
7
+ .. facet::
8
+ :name: genre
9
+ :values: reference
10
+
11
+ .. meta::
12
+ :keywords: code example, measurement, weather
13
+
7
14
.. contents:: On this page
8
15
:local:
9
16
:backlinks: none
@@ -64,14 +71,11 @@ To create a time series collection, pass the following parameters to the
64
71
65
72
- A `CreateCollectionOptions <{+api+}/mongodb-driver-core/com/mongodb/client/model/CreateCollectionOptions.html>`__
66
73
object with the `TimeSeriesOptions <{+api+}/mongodb-driver-core/com/mongodb/client/model/TimeSeriesOptions.html>`__ set
67
- using the ``timeSeriesOptions()`` method
74
+ with the ``timeSeriesOptions()`` method
68
75
69
76
.. _java-rs-time-series-create-example:
70
77
71
- Example
72
- ~~~~~~~
73
-
74
- This example creates the ``october2024`` time series collection in the
78
+ The following example creates a time series collection named ``october2024`` in the
75
79
``fall_weather`` database with the ``timeField`` option set to the ``"timestamp"`` field:
76
80
77
81
.. literalinclude:: /includes/data-formats/time-series.java
@@ -114,7 +118,7 @@ in each inserted document.
114
118
Example
115
119
~~~~~~~
116
120
117
- This example inserts New York City temperature data into the ``october2024``
121
+ The following example inserts New York City temperature data into the ``october2024``
118
122
time series collection created in the :ref:`Create a Time Series Collection example
119
123
<java-rs-time-series-create-example>`. Each document contains the following fields:
120
124
You can’t perform that action at this time.
0 commit comments