T - the row typepublic interface PositionDeltaWriter<T>
extends java.io.Closeable
| Modifier and Type | Method and Description |
|---|---|
default void |
delete(java.lang.CharSequence path,
long pos,
PartitionSpec spec,
StructLike partition)
Deletes a position in the provided spec/partition.
|
void |
delete(java.lang.CharSequence path,
long pos,
T row,
PartitionSpec spec,
StructLike partition)
Deletes a position in the provided spec/partition and records the deleted row in the delete file.
|
void |
insert(T row,
PartitionSpec spec,
StructLike partition)
Inserts a row to the provided spec/partition.
|
WriteResult |
result()
Returns a result that contains information about written
DataFiles or DeleteFiles. |
void insert(T row, PartitionSpec spec, StructLike partition)
row - a data recordspec - a partition specpartition - a partition or null if the spec is unpartitioneddefault void delete(java.lang.CharSequence path,
long pos,
PartitionSpec spec,
StructLike partition)
path - a data file pathpos - a positionspec - a partition specpartition - a partition or null if the spec is unpartitionedvoid delete(java.lang.CharSequence path,
long pos,
T row,
PartitionSpec spec,
StructLike partition)
path - a data file pathpos - a positionrow - a deleted rowspec - a partition specpartition - a partition or null if the spec is unpartitionedWriteResult result()
DataFiles or DeleteFiles.
The result is valid only after the writer is closed.