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
Ordering
- Alphabetic
- By Inheritance
Inherited
- CdcOptions
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
-
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
-
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()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val extraOptions: Option[Map[String, String]]
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- val format: String
-
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
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val partitionBy: Option[List[String]]
- val saveMode: String
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
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()