case class MongoDbWriterOptions(nodes: List[String], subprotocol: String, database: String, table: String, username: String, password: String, saveMode: SaveMode, options: Map[String, Any], connectionProps: Option[String]) extends Product with Serializable
A case class representing the MongoDB writer options required for writing data from a DataFrame to a MongoDB collection.
- nodes
The list of MongoDB nodes in the format "host1:port1,host2:port2,...".
- subprotocol
The subprotocol for the MongoDB connection (e.g., "mongodb" or "mongodb+srv").
- database
The name of the MongoDB database where data will be written.
- table
The name of the MongoDB collection where data will be written.
- username
The username for authenticating the MongoDB connection.
- password
The password for authenticating the MongoDB connection.
- saveMode
The SaveMode for writing data to MongoDB (e.g., SaveMode.Append, SaveMode.Overwrite, etc.).
- options
Additional options to be passed to the MongoDB writer (default: Map.empty).
- connectionProps
Optional connection properties for building the MongoDB connection URL (default: None).
- Alphabetic
- By Inheritance
- MongoDbWriterOptions
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
MongoDbWriterOptions(nodes: List[String], subprotocol: String, database: String, table: String, username: String, password: String, saveMode: SaveMode, options: Map[String, Any], connectionProps: Option[String])
- nodes
The list of MongoDB nodes in the format "host1:port1,host2:port2,...".
- subprotocol
The subprotocol for the MongoDB connection (e.g., "mongodb" or "mongodb+srv").
- database
The name of the MongoDB database where data will be written.
- table
The name of the MongoDB collection where data will be written.
- username
The username for authenticating the MongoDB connection.
- password
The password for authenticating the MongoDB connection.
- saveMode
The SaveMode for writing data to MongoDB (e.g., SaveMode.Append, SaveMode.Overwrite, etc.).
- options
Additional options to be passed to the MongoDB writer (default: Map.empty).
- connectionProps
Optional connection properties for building the MongoDB connection URL (default: None).
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- val connectionProps: Option[String]
- val database: String
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val nodes: List[String]
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val options: Map[String, Any]
- val password: String
- val saveMode: SaveMode
- val subprotocol: String
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val table: String
- val username: String
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()