writer
Returns a DataSourceWriter instance for writing data.
The implementation is required for writable data sources.
Added in Databricks Runtime 14.3 LTS
Syntax
writer(schema: StructType, overwrite: bool)
Parameters
Parameter | Type | Description |
|---|---|---|
| StructType | The schema of the data to be written. |
| bool | A flag indicating whether to overwrite existing data when writing to the data source. |
Returns
DataSourceWriter
A writer instance for this data source.