Package org.apache.iceberg.io
Class ClusteredEqualityDeleteWriter<T>
java.lang.Object
org.apache.iceberg.io.ClusteredEqualityDeleteWriter<T>
- All Implemented Interfaces:
- Closeable,- AutoCloseable,- PartitioningWriter<T,- DeleteWriteResult> 
An equality delete writer capable of writing to multiple specs and partitions that requires the
 incoming delete records to be properly clustered by partition spec and by partition within each
 spec.
- 
Constructor SummaryConstructorsConstructorDescriptionClusteredEqualityDeleteWriter(FileWriterFactory<T> writerFactory, OutputFileFactory fileFactory, FileIO io, long targetFileSizeInBytes) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidaddResult(DeleteWriteResult result) protected DeleteWriteResultvoidclose()protected FileWriter<T, DeleteWriteResult> newWriter(PartitionSpec spec, StructLike partition) final DeleteWriteResultresult()Returns a result that contains information about writtenDataFiles orDeleteFiles.voidwrite(T row, PartitionSpec spec, StructLike partition) Writes a row to the provided spec/partition.
- 
Constructor Details- 
ClusteredEqualityDeleteWriterpublic ClusteredEqualityDeleteWriter(FileWriterFactory<T> writerFactory, OutputFileFactory fileFactory, FileIO io, long targetFileSizeInBytes) 
 
- 
- 
Method Details- 
newWriter
- 
addResult
- 
aggregatedResult
- 
writeDescription copied from interface:PartitioningWriterWrites a row to the provided spec/partition.- Specified by:
- writein interface- PartitioningWriter<T,- R> 
- Parameters:
- row- a data or delete record
- spec- a partition spec
- partition- a partition or null if the spec is unpartitioned
 
- 
close- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Throws:
- IOException
 
- 
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<T,- R> 
- Returns:
- the writer result
 
 
-