File tree Expand file tree Collapse file tree 2 files changed +30
-19
lines changed Expand file tree Collapse file tree 2 files changed +30
-19
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ You can configure the following properties to read from MongoDB:
21
21
22
22
.. note::
23
23
24
-
25
24
If you use ``SparkConf`` to set the connector's read configurations,
26
25
prefix ``spark.mongodb.read.`` to each property.
27
26
@@ -31,15 +30,7 @@ You can configure the following properties to read from MongoDB:
31
30
32
31
* - Property name
33
32
- Description
34
-
35
- * - ``mongoClientFactory``
36
- - | MongoClientFactory configuration key.
37
- | You can specify a custom implementation which must implement the
38
- ``com.mongodb.spark.sql.connector.connection.MongoClientFactory``
39
- interface.
40
- |
41
- | **Default:** ``com.mongodb.spark.sql.connector.connection.DefaultMongoClientFactory``
42
-
33
+
43
34
* - ``connection.uri``
44
35
- | **Required.**
45
36
| The connection string configuration key.
@@ -54,6 +45,20 @@ You can configure the following properties to read from MongoDB:
54
45
- | **Required.**
55
46
| The collection name configuration.
56
47
48
+ * - ``comment``
49
+ - | The comment to append to the read operation. Comments appear in the
50
+ :manual:`output of the Database Profiler. </reference/database-profiler>`
51
+ |
52
+ | **Default:** None
53
+
54
+ * - ``mongoClientFactory``
55
+ - | MongoClientFactory configuration key.
56
+ | You can specify a custom implementation which must implement the
57
+ ``com.mongodb.spark.sql.connector.connection.MongoClientFactory``
58
+ interface.
59
+ |
60
+ | **Default:** ``com.mongodb.spark.sql.connector.connection.DefaultMongoClientFactory``
61
+
57
62
* - ``partitioner``
58
63
- | The partitioner full class name.
59
64
Original file line number Diff line number Diff line change @@ -30,27 +30,33 @@ The following options for writing to MongoDB are available:
30
30
31
31
* - Property name
32
32
- Description
33
+
34
+ * - ``connection.uri``
35
+ - | **Required.**
36
+ | The connection string configuration key.
37
+ |
38
+ | **Default:** ``mongodb://localhost:27017/``
39
+
40
+ * - ``database``
41
+ - | **Required.**
42
+ | The database name configuration.
33
43
34
44
* - ``collection``
35
45
- | **Required.**
36
46
| The collection name configuration.
37
47
38
- * - ``connection.uri ``
39
- - | **Required.**
40
- | The connection string configuration key.
48
+ * - ``comment ``
49
+ - | The comment to append to the write operation. Comments appear in the
50
+ :manual:`output of the Database Profiler. </reference/database-profiler>`
41
51
|
42
- | **Default:** ``mongodb://localhost:27017/``
52
+ | **Default:** None
43
53
44
54
* - ``convertJson``
45
55
- | When ``true``, the connector parses the string and converts extended JSON
46
56
into BSON.
47
57
|
48
58
| **Default:** ``false``
49
-
50
- * - ``database``
51
- - | **Required.**
52
- | The database name configuration.
53
-
59
+
54
60
* - ``idFieldList``
55
61
- | Field or list of fields by which to split the collection data. To
56
62
specify more than one field, separate them using a comma as shown
You can’t perform that action at this time.
0 commit comments