Package org.apache.iceberg.deletes
Interface DVFileWriter
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
BaseDVFileWriter
A deletion vector file writer.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(String path, long pos, PartitionSpec spec, StructLike partition) Marks a position in a given data file as deleted.default voiddelete(String path, PositionDeleteIndex positionDeleteIndex, PartitionSpec spec, StructLike partition) Marks every position that is deleted in positionDeleteIndex as deleted in the given data file.result()Returns a result that contains information about writtenDeleteFiles.
-
Method Details
-
delete
Marks a position in a given data file as deleted.- Parameters:
path- the data file pathpos- the data file positionspec- the data file partition specpartition- the data file partition
-
result
DeleteWriteResult result()Returns a result that contains information about writtenDeleteFiles. The result is valid only after the writer is closed.- Returns:
- the writer result
-
delete
default void delete(String path, PositionDeleteIndex positionDeleteIndex, PartitionSpec spec, StructLike partition) Marks every position that is deleted in positionDeleteIndex as deleted in the given data file. Implementations should merge with existing position indices for the provided path- Parameters:
path- the data file pathpositionDeleteIndex- the position delete index containing all the positions to deletespec- the data file partition specpartition- the data file partition
-