protected abstract class BaseTaskWriter.BaseEqualityDeltaWriter
extends java.lang.Object
implements java.io.Closeable
Modifier | Constructor and Description |
---|---|
protected |
BaseEqualityDeltaWriter(PartitionKey partition,
Schema schema,
Schema deleteSchema) |
Modifier and Type | Method and Description |
---|---|
protected abstract StructLike |
asStructLike(T data)
Wrap the data 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(PartitionKey partition, Schema schema, Schema deleteSchema)
protected abstract StructLike asStructLike(T data)
StructLike
.public void write(T row) throws java.io.IOException
java.io.IOException
public void delete(T row) throws java.io.IOException
row
- the given row to delete.java.io.IOException
public void deleteKey(T key) throws java.io.IOException
key
- is the projected data whose columns are the same as the equality fields.java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException