Packages

c

io.dataos.spark.writers.mongodb

MongoDbWriterOptions

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).

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MongoDbWriterOptions
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. 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

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. val connectionProps: Option[String]
  7. val database: String
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. val nodes: List[String]
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. val options: Map[String, Any]
  17. val password: String
  18. val saveMode: SaveMode
  19. val subprotocol: String
  20. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  21. val table: String
  22. val username: String
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped