protected abstract class BaseTaskWriter.BaseEqualityDeltaWriter
extends java.lang.Object
implements java.io.Closeable
| Modifier | Constructor and Description |
|---|---|
protected |
BaseEqualityDeltaWriter(StructLike partition,
Schema schema,
Schema deleteSchema) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract StructLike |
asStructLike(T data)
Wrap the data as a
StructLike. |
protected abstract StructLike |
asStructLikeKey(T key)
Wrap the passed in key of a row as a
StructLike |
void |
close() |
void |
delete(T row)
Delete those rows whose equality fields has the same values with the given row.
|
void |
deleteKey(T key)
Delete those rows with the given key.
|
void |
write(T row) |
protected BaseEqualityDeltaWriter(StructLike partition, Schema schema, Schema deleteSchema)
protected abstract StructLike asStructLike(T data)
StructLike.protected abstract StructLike asStructLikeKey(T key)
StructLikepublic void write(T row) throws java.io.IOException
java.io.IOExceptionpublic void delete(T row) throws java.io.IOException
row - the given row to delete.java.io.IOExceptionpublic void deleteKey(T key) throws java.io.IOException
key - is the projected data whose columns are the same as the equality fields.java.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOException