Packages

case class CdcOptions(saveMode: String, format: String = "delta", extraOptions: Option[Map[String, String]] = None, partitionBy: Option[List[String]] = None) extends Product with Serializable

Options for a CdcModel:

saveMode specifies the behaviour when saving and the output uri already exists; valid values are:

  • "error", throw an error and do not save anything
  • "overwrite", overwrite existing data
  • "append", append to existing data
  • "ignore", do not save anything and don't throw any errors
  • "default", like "error" for it.agilelab.bigdata.wasp.consumers.SparkWriter, like "append" for it.agilelab.bigdata.wasp.consumers.SparkStreamingWriter

format specifies the data format to use; valid values are:

  • "delta" (this is the default)
  • "parquet"
  • "orc"
  • "json"
  • any format accepted by the available Spark DataFrameWriters

extraOptions allows specifying any writer-specific options accepted by DataFrameReader/Writer.option

partitionBy allows specifying columns to be used to partition the data by using different directories for different values

saveMode

specifies the behaviour when the output uri exists

format

specifies the format to use

extraOptions

extra options for the underlying writer

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CdcOptions
  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 CdcOptions(saveMode: String, format: String = "delta", extraOptions: Option[Map[String, String]] = None, partitionBy: Option[List[String]] = None)

    saveMode

    specifies the behaviour when the output uri exists

    format

    specifies the format to use

    extraOptions

    extra options for the underlying writer

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. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. val extraOptions: Option[Map[String, String]]
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. val format: String
  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. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. val partitionBy: Option[List[String]]
  16. val saveMode: String
  17. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  18. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. 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