Package org.apache.iceberg.deletes
Class EqualityDeleteWriter<T>
java.lang.Object
org.apache.iceberg.deletes.EqualityDeleteWriter<T>
- All Implemented Interfaces:
Closeable
,AutoCloseable
,FileWriter<T,
DeleteWriteResult>
-
Constructor Summary
ConstructorDescriptionEqualityDeleteWriter
(FileAppender<T> appender, FileFormat format, String location, PartitionSpec spec, StructLike partition, EncryptionKeyMetadata keyMetadata, SortOrder sortOrder, int... equalityFieldIds) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
long
length()
Returns the number of bytes that were currently written by this writer.result()
Returns a result that contains information about writtenDataFile
s orDeleteFile
s.void
Writes a row to a predefined spec/partition.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.iceberg.io.FileWriter
write
-
Constructor Details
-
EqualityDeleteWriter
public EqualityDeleteWriter(FileAppender<T> appender, FileFormat format, String location, PartitionSpec spec, StructLike partition, EncryptionKeyMetadata keyMetadata, SortOrder sortOrder, int... equalityFieldIds)
-
-
Method Details
-
write
Description copied from interface:FileWriter
Writes a row to a predefined spec/partition.- Specified by:
write
in interfaceFileWriter<T,
DeleteWriteResult> - Parameters:
row
- a data or delete record
-
length
public long length()Description copied from interface:FileWriter
Returns the number of bytes that were currently written by this writer.- Specified by:
length
in interfaceFileWriter<T,
DeleteWriteResult> - Returns:
- the number of written bytes
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
toDeleteFile
-
result
Description copied from interface:FileWriter
Returns a result that contains information about writtenDataFile
s orDeleteFile
s. The result is valid only after the writer is closed.- Specified by:
result
in interfaceFileWriter<T,
DeleteWriteResult> - Returns:
- the file writer result
-