Package org.apache.iceberg.io
Class PartitioningDVWriter<T>
java.lang.Object
org.apache.iceberg.io.PartitioningDVWriter<T>
- All Implemented Interfaces:
- Closeable,- AutoCloseable,- PartitioningWriter<PositionDelete<T>,- DeleteWriteResult> 
public class PartitioningDVWriter<T>
extends Object
implements PartitioningWriter<PositionDelete<T>,DeleteWriteResult> 
PartitioningDVWriter is a PartitioningWriter implementation that accumulates deleted positions
 for data files across different partitions and writes out deletion vector files.
- 
Constructor SummaryConstructorsConstructorDescriptionPartitioningDVWriter(OutputFileFactory fileFactory, Function<CharSequence, PositionDeleteIndex> loadPreviousDeletes) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()result()Returns a result that contains information about writtenDataFiles orDeleteFiles.voidwrite(PositionDelete<T> row, PartitionSpec spec, StructLike partition) Writes a row to the provided spec/partition.
- 
Constructor Details- 
PartitioningDVWriterpublic PartitioningDVWriter(OutputFileFactory fileFactory, Function<CharSequence, PositionDeleteIndex> loadPreviousDeletes) 
 
- 
- 
Method Details- 
writeDescription copied from interface:PartitioningWriterWrites a row to the provided spec/partition.- Specified by:
- writein interface- PartitioningWriter<PositionDelete<T>,- DeleteWriteResult> 
- Parameters:
- row- a data or delete record
- spec- a partition spec
- partition- a partition or null if the spec is unpartitioned
 
- 
resultDescription copied from interface:PartitioningWriterReturns a result that contains information about writtenDataFiles orDeleteFiles. The result is valid only after the writer is closed.- Specified by:
- resultin interface- PartitioningWriter<PositionDelete<T>,- DeleteWriteResult> 
- Returns:
- the writer result
 
- 
close- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Throws:
- IOException
 
 
-