class DeltaPendingFile extends AnyRef
Wrapper class for InProgressFileWriter.PendingFileRecoverable object.
This class carries the internal committable information to be used during the checkpoint/commit
phase.
As similar to org.apache.flink.connector.file.sink.FileSink we need to carry
InProgressFileWriter.PendingFileRecoverable information to perform "local" commit
on file that the sink has written data to. However, as opposite to mentioned FileSink,
in DeltaSink we need to perform also "global" commit to the io.delta.standalone.DeltaLog
and for that additional file metadata must be provided. Hence, this class provides the required
information for both types of commits by wrapping pending file and attaching file's metadata.
Lifecycle of instances of this class is as follows:
- Instances of this class are being created inside
io.delta.flink.sink.internal.writer.DeltaWriterBucket#closePartFilemethod every time when any in-progress is called to be closed. This happens either when some conditions for closing are met or at the end of every checkpoint interval during a pre-commit phase when we are closing all the open files in all buckets - Its life span holds only until the end of a checkpoint interval
- During pre-commit phase (and after closing every in-progress files) every existing
DeltaPendingFileinstance is automatically transformed into aDeltaCommittableinstance
- Alphabetic
- By Inheritance
- DeltaPendingFile
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new DeltaPendingFile(partitionSpec: LinkedHashMap[String, String], fileName: String, pendingFile: PendingFileRecoverable, recordCount: Long, fileSize: Long, lastUpdateTime: Long)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getFileName(): String
- def getFileSize(): Long
- def getLastUpdateTime(): Long
- def getPartitionSpec(): LinkedHashMap[String, String]
- def getPendingFile(): PendingFileRecoverable
- def getRecordCount(): Long
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toAddFile(): AddFile
Converts
DeltaPendingFileobject to aAddFileobjectConverts
DeltaPendingFileobject to aAddFileobject- returns
AddFileobject generated from input
-
def
toString(): String
- Definition Classes
- DeltaPendingFile → AnyRef → Any
- Annotations
- @Override()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()