Package org.apache.iceberg.io
Class RollingEqualityDeleteWriter<T>
java.lang.Object
org.apache.iceberg.io.RollingEqualityDeleteWriter<T>
- All Implemented Interfaces:
- Closeable,- AutoCloseable,- FileWriter<T,- DeleteWriteResult> 
A rolling equality delete writer that splits incoming deletes into multiple files within one
 spec/partition based on the target file size.
- 
Constructor SummaryConstructorsConstructorDescriptionRollingEqualityDeleteWriter(FileWriterFactory<T> writerFactory, OutputFileFactory fileFactory, FileIO io, long targetFileSizeInBytes, PartitionSpec spec, StructLike partition) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidaddResult(DeleteWriteResult result) protected DeleteWriteResultvoidclose()longlonglength()Returns the number of bytes that were currently written by this writer.protected EqualityDeleteWriter<T> newWriter(EncryptedOutputFile file) protected voidprotected StructLikefinal DeleteWriteResultresult()Returns a result that contains information about writtenDataFiles orDeleteFiles.protected PartitionSpecspec()voidWrites a row to a predefined spec/partition.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.iceberg.io.FileWriterwrite
- 
Constructor Details- 
RollingEqualityDeleteWriterpublic RollingEqualityDeleteWriter(FileWriterFactory<T> writerFactory, OutputFileFactory fileFactory, FileIO io, long targetFileSizeInBytes, PartitionSpec spec, StructLike partition) 
 
- 
- 
Method Details- 
newWriter
- 
addResult
- 
aggregatedResult
- 
spec
- 
partition
- 
currentFilePath
- 
currentFileRowspublic long currentFileRows()
- 
lengthpublic long length()Description copied from interface:FileWriterReturns the number of bytes that were currently written by this writer.- Specified by:
- lengthin interface- FileWriter<T,- W extends FileWriter<T, - R>> 
- Returns:
- the number of written bytes
 
- 
writeDescription copied from interface:FileWriterWrites a row to a predefined spec/partition.- Specified by:
- writein interface- FileWriter<T,- W extends FileWriter<T, - R>> 
- Parameters:
- row- a data or delete record
 
- 
openCurrentWriterprotected void openCurrentWriter()
- 
close- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Throws:
- IOException
 
- 
resultDescription copied from interface:FileWriterReturns a result that contains information about writtenDataFiles orDeleteFiles. The result is valid only after the writer is closed.- Specified by:
- resultin interface- FileWriter<T,- W extends FileWriter<T, - R>> 
- Returns:
- the file writer result
 
 
-