Packages

case class CheckpointInstance(version: Long, format: Format, fileName: Option[String] = None, numParts: Option[Int] = None) extends Ordered[CheckpointInstance] with Product with Serializable

A class to help with comparing checkpoints with each other, where we may have had concurrent writers that checkpoint with different number of parts. The numParts field will be present only for multipart checkpoints (represented by Format.WITH_PARTS). The fileName field is present only for V2 Checkpoints (represented by Format.V2) These additional fields are used as a tie breaker when comparing multiple checkpoint instance of same Format for the same version.

Linear Supertypes
Serializable, Serializable, Product, Equals, Ordered[CheckpointInstance], Comparable[CheckpointInstance], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CheckpointInstance
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Ordered
  7. Comparable
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CheckpointInstance(version: Long, format: Format, fileName: Option[String] = None, numParts: Option[Int] = None)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def <(that: CheckpointInstance): Boolean
    Definition Classes
    Ordered
  4. def <=(that: CheckpointInstance): Boolean
    Definition Classes
    Ordered
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. def >(that: CheckpointInstance): Boolean
    Definition Classes
    Ordered
  7. def >=(that: CheckpointInstance): Boolean
    Definition Classes
    Ordered
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  10. def compare(other: CheckpointInstance): Int

    Comparison rules: 1.

    Comparison rules: 1. A CheckpointInstance with higher version is greater than the one with lower version. 2. For CheckpointInstances with same version, a Multi-part checkpoint is greater than a Single part checkpoint. 3. For Multi-part CheckpointInstances corresponding to same version, the one with more parts is greater than the one with less parts. 4. For V2 Checkpoints corresponding to same version, we use the fileName as tie breaker.

    Definition Classes
    CheckpointInstance → Ordered
  11. def compareTo(that: CheckpointInstance): Int
    Definition Classes
    Ordered → Comparable
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. val fileName: Option[String]
  14. def filterFiles(deltaLog: DeltaLog, filesForCheckpointConstruction: Seq[FileStatus]): Seq[FileStatus]
  15. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. val format: Format
  17. def getCheckpointProvider(deltaLog: DeltaLog, filesForCheckpointConstruction: Seq[FileStatus], lastCheckpointInfoHint: Option[LastCheckpointInfo] = None): UninitializedCheckpointProvider

    Returns a CheckpointProvider which can tell the files corresponding to this checkpoint.

    Returns a CheckpointProvider which can tell the files corresponding to this checkpoint. The lastCheckpointInfoHint might be passed to CheckpointProvider so that underlying CheckpointProvider provides more precise info.

  18. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. val numParts: Option[Int]
  24. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  25. val version: Long
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Ordered[CheckpointInstance]

Inherited from Comparable[CheckpointInstance]

Inherited from AnyRef

Inherited from Any

Ungrouped