BaseDeltaTaskWriter

abstract class BaseDeltaTaskWriter : BaseTaskWriter<T>

Implementation of the Iceberg BaseTaskWriter that handles delta-based updates (insert, update, delete).

N.B.: This class is implemented in Java due to visibility of the BaseEqualityDeltaWriter. That class is marked as protected, which is less visible than the BaseTaskWriter class or any other subclasses. This is not allowed in Kotlin, so this class is implemented in Java where that it is allowed. This class should not be converted to Kotlin while the visibility is still lesser in the super class.

Inheritors

Constructors

Link copied to clipboard
constructor(table: Table, spec: PartitionSpec, format: FileFormat, appenderFactory: FileAppenderFactory<Record>, fileFactory: OutputFileFactory, io: FileIO, targetFileSize: Long, schema: Schema, identifierFieldIds: Set<Integer>)

Types

Link copied to clipboard
open inner class RowDataDeltaWriter : BaseTaskWriter.BaseEqualityDeltaWriter
Custom writer implementation that supports inserting and deleting records based on equality.

Properties

Link copied to clipboard
val NULL_PK_ERROR_MESSAGE: String = "Detected null value in primary key. The Iceberg protocol disallows this. This is either a bug in the source, or you should use the append/overwrite sync mode."

Functions

Link copied to clipboard
open fun abort()
Link copied to clipboard
abstract fun close()
Link copied to clipboard
open fun complete(): WriteResult
Link copied to clipboard
open fun dataFiles(): Array<DataFile>
Link copied to clipboard
Link copied to clipboard
open fun wrapper(): InternalRecordWrapper
Link copied to clipboard
open fun write(row: Record)