Package org.apache.iceberg.deletes
Class BaseDVFileWriter
java.lang.Object
org.apache.iceberg.deletes.BaseDVFileWriter
- All Implemented Interfaces:
Closeable
,AutoCloseable
,DVFileWriter
-
Constructor Summary
ConstructorsConstructorDescriptionBaseDVFileWriter
(OutputFileFactory fileFactory, Function<String, PositionDeleteIndex> loadPreviousDeletes) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
delete
(String path, long pos, PartitionSpec spec, StructLike partition) Marks a position in a given data file as deleted.result()
Returns a result that contains information about writtenDeleteFile
s.
-
Constructor Details
-
BaseDVFileWriter
public BaseDVFileWriter(OutputFileFactory fileFactory, Function<String, PositionDeleteIndex> loadPreviousDeletes)
-
-
Method Details
-
delete
Description copied from interface:DVFileWriter
Marks a position in a given data file as deleted.- Specified by:
delete
in interfaceDVFileWriter
- Parameters:
path
- the data file pathpos
- the data file positionspec
- the data file partition specpartition
- the data file partition
-
result
Description copied from interface:DVFileWriter
Returns a result that contains information about writtenDeleteFile
s. The result is valid only after the writer is closed.- Specified by:
result
in interfaceDVFileWriter
- Returns:
- the writer result
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-