Interface DeltaWriter<T>
- All Superinterfaces:
- AutoCloseable,- Closeable,- DataWriter<T>
A data writer returned by 
DeltaWriterFactory.createWriter(int, long) and is
 responsible for writing a delta of rows.- Since:
- 3.4.0
- 
Method SummaryMethods inherited from interface org.apache.spark.sql.connector.write.DataWriterabort, commit, currentMetricsValues, write, writeAll
- 
Method Details- 
deleteDeletes a row.- Parameters:
- metadata- values for metadata columns that were projected but are not part of the row ID
- id- a row ID to delete
- Throws:
- IOException- if failure happens during disk/network IO like writing files
 
- 
updateUpdates a row.- Parameters:
- metadata- values for metadata columns that were projected but are not part of the row ID
- id- a row ID to update
- row- a row with updated values
- Throws:
- IOException- if failure happens during disk/network IO like writing files
 
- 
reinsertReinserts a row with metadata.This method handles the insert portion of updated rows split into deletes and inserts. - Parameters:
- metadata- values for metadata columns
- row- a row to reinsert
- Throws:
- IOException- if failure happens during disk/network IO like writing files
- Since:
- 4.0.0
 
- 
insertInserts a new row.- Parameters:
- row- a row to insert
- Throws:
- IOException- if failure happens during disk/network IO like writing files
 
- 
writeDescription copied from interface:DataWriterWrites one record.If this method fails (by throwing an exception), DataWriter.abort()will be called and this data writer is considered to have been failed.- Specified by:
- writein interface- DataWriter<T>
- Throws:
- IOException- if failure happens during disk/network IO like writing files.
 
 
-