Package org.apache.iceberg.deletes
Class EqualityDeleteWriter<T>
- java.lang.Object
- 
- org.apache.iceberg.deletes.EqualityDeleteWriter<T>
 
- 
- All Implemented Interfaces:
- java.io.Closeable,- java.lang.AutoCloseable,- FileWriter<T,DeleteWriteResult>
 
 public class EqualityDeleteWriter<T> extends java.lang.Object implements FileWriter<T,DeleteWriteResult> 
- 
- 
Constructor SummaryConstructors Constructor Description EqualityDeleteWriter(FileAppender<T> appender, FileFormat format, java.lang.String location, PartitionSpec spec, StructLike partition, EncryptionKeyMetadata keyMetadata, SortOrder sortOrder, int... equalityFieldIds)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclose()voiddelete(T row)Deprecated.since 0.13.0, will be removed in 0.14.0; usewrite(Object)instead.voiddeleteAll(java.lang.Iterable<T> rows)Deprecated.since 0.13.0, will be removed in 0.14.0; useFileWriter.write(Iterable)instead.longlength()Returns the number of bytes that were currently written by this writer.DeleteWriteResultresult()Returns a result that contains information about writtenDataFiles orDeleteFiles.DeleteFiletoDeleteFile()voidwrite(T row)Writes a row to a predefined spec/partition.- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.apache.iceberg.io.FileWriterwrite
 
- 
 
- 
- 
- 
Constructor Detail- 
EqualityDeleteWriterpublic EqualityDeleteWriter(FileAppender<T> appender, FileFormat format, java.lang.String location, PartitionSpec spec, StructLike partition, EncryptionKeyMetadata keyMetadata, SortOrder sortOrder, int... equalityFieldIds) 
 
- 
 - 
Method Detail- 
writepublic void write(T row) Description copied from interface:FileWriterWrites a row to a predefined spec/partition.- Specified by:
- writein interface- FileWriter<T,DeleteWriteResult>
- Parameters:
- row- a data or delete record
 
 - 
deleteAll@Deprecated public void deleteAll(java.lang.Iterable<T> rows) Deprecated.since 0.13.0, will be removed in 0.14.0; useFileWriter.write(Iterable)instead.Writes equality deletes.
 - 
delete@Deprecated public void delete(T row) Deprecated.since 0.13.0, will be removed in 0.14.0; usewrite(Object)instead.Writes an equality delete.
 - 
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,DeleteWriteResult>
- Returns:
- the number of written bytes
 
 - 
closepublic void close() throws java.io.IOException- Specified by:
- closein interface- java.lang.AutoCloseable
- Specified by:
- closein interface- java.io.Closeable
- Throws:
- java.io.IOException
 
 - 
toDeleteFilepublic DeleteFile toDeleteFile() 
 - 
resultpublic DeleteWriteResult result() Description 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,DeleteWriteResult>
- Returns:
- the file writer result
 
 
- 
 
-