public interface DeltaWriter<T>
extends org.apache.spark.sql.connector.write.DataWriter<T>
Modifier and Type | Method and Description |
---|---|
void |
delete(T metadata,
T id)
Passes information for a row that must be deleted.
|
void |
insert(T row)
Passes a row to insert.
|
void |
update(T metadata,
T id,
T row)
Passes information for a row that must be updated together with the updated row.
|
default void |
write(T row) |
void delete(T metadata, T id) throws java.io.IOException
metadata
- values for metadata columns that were projected but are not part of the row IDid
- a row ID to deletejava.io.IOException
- if the write process encounters an errorvoid update(T metadata, T id, T row) throws java.io.IOException
metadata
- values for metadata columns that were projected but are not part of the row IDid
- a row ID to updaterow
- a row with updated valuesjava.io.IOException
- if the write process encounters an errorvoid insert(T row) throws java.io.IOException
row
- a row to insertjava.io.IOException
- if the write process encounters an error