@Experimental public interface DeltaWriter<T> extends DataWriter<T>
DeltaWriterFactory.createWriter(int, long)
and is
responsible for writing a delta of rows.Modifier and Type | Method and Description |
---|---|
void |
delete(T metadata,
T id)
Deletes a row.
|
void |
insert(T row)
Inserts a new row.
|
void |
update(T metadata,
T id,
T row)
Updates a row.
|
default void |
write(T row)
Writes one record.
|
abort, commit, currentMetricsValues
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 failure happens during disk/network IO like writing filesvoid 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 failure happens during disk/network IO like writing filesvoid insert(T row) throws java.io.IOException
row
- a row to insertjava.io.IOException
- if failure happens during disk/network IO like writing filesdefault void write(T row) throws java.io.IOException
DataWriter
If this method fails (by throwing an exception), DataWriter.abort()
will be called and this
data writer is considered to have been failed.
write
in interface DataWriter<T>
java.io.IOException
- if failure happens during disk/network IO like writing files.