class RowDataDeltaSinkBuilder extends AnyRef
A builder class for DeltaSink for a stream of RowData.
For most common use cases use DeltaSink#forRowData utility method to instantiate the
sink. After instantiation of this builder you can either call
RowDataDeltaSinkBuilder#build() method to get the instance of a DeltaSink or
configure additional behaviour (like merging of the schema or setting partition columns) and then
build the sink.
- Alphabetic
- By Inheritance
- RowDataDeltaSinkBuilder
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new RowDataDeltaSinkBuilder(tableBasePath: Path, conf: Configuration, rowType: RowType, mergeSchema: Boolean)
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
build(): DeltaSink[RowData]
Creates the actual sink.
Creates the actual sink.
- returns
constructed
DeltaSinkobject
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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()
-
def
hashCode(): Int
- 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()
-
def
option(optionName: String, optionValue: Long): RowDataDeltaSinkBuilder
Sets a configuration option.
-
def
option(optionName: String, optionValue: Int): RowDataDeltaSinkBuilder
Sets a configuration option.
-
def
option(optionName: String, optionValue: Boolean): RowDataDeltaSinkBuilder
Sets a configuration option.
-
def
option(optionName: String, optionValue: String): RowDataDeltaSinkBuilder
Sets a configuration option.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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()
-
def
withMergeSchema(mergeSchema: Boolean): RowDataDeltaSinkBuilder
Sets the sink's option whether we should try to update the Delta table's schema with the stream's schema in case of a mismatch during a commit to the
io.delta.standalone.DeltaLog.Sets the sink's option whether we should try to update the Delta table's schema with the stream's schema in case of a mismatch during a commit to the
io.delta.standalone.DeltaLog. The update is not guaranteed since it checks for compatible schemas.- mergeSchema
whether we should try to update the Delta table's schema with the stream's schema in case of a mismatch. This is not guaranteed since it requires compatible schemas.
- returns
builder for
DeltaSink
-
def
withPartitionColumns(partitionColumns: <repeated...>[String]): RowDataDeltaSinkBuilder
Sets list of partition fields that will be extracted from incoming
RowDataevents.Sets list of partition fields that will be extracted from incoming
RowDataevents.Provided fields' names must correspond to the names provided in the
RowTypeobject for this sink and must be in the same order as expected order of occurrence in the partition path that will be generated.- partitionColumns
array of partition columns' names in the order they should be applied when creating destination path.
- returns
builder for
DeltaSink