object LastCheckpointInfo extends Serializable
- Alphabetic
- By Inheritance
- LastCheckpointInfo
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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
- val STORED_CHECKSUM_KEY: String
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def checksumEnabled(spark: SparkSession): Boolean
Whether to store checksum OR do checksum validations around LastCheckpointInfo
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def deserializeFromJson(jsonStr: String, validate: Boolean): LastCheckpointInfo
Converts the given
jsonStrinto a LastCheckpointInfo object.Converts the given
jsonStrinto a LastCheckpointInfo object. ifvalidateis set, then it also validates the consistency of the json:- calculating the checksum and comparing it with the
storedChecksum. - json should not have any duplicates.
- calculating the checksum and comparing it with the
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def fromFiles(files: Seq[FileStatus]): LastCheckpointInfo
- def getChecksums(jsonStr: String): (Option[String], String)
Analyzes the json representation of LastCheckpointInfo and returns checksum tuple where - first element refers to the stored checksum in the json representation of LastCheckpointInfo, None if the checksum is not present.
Analyzes the json representation of LastCheckpointInfo and returns checksum tuple where - first element refers to the stored checksum in the json representation of LastCheckpointInfo, None if the checksum is not present. - second element refers to the checksum computed from the canonicalized json representation of the LastCheckpointInfo.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- 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()
- def serializeToJson(lastCheckpointInfo: LastCheckpointInfo, addChecksum: Boolean, suppressOptionalFields: Boolean = false): String
Returns the json representation of this LastCheckpointInfo object.
Returns the json representation of this LastCheckpointInfo object. Also adds the checksum to the returned json if
addChecksumis set. The checksum can be used by readers to validate consistency of the LastCheckpointInfo. It is calculated using rules mentioned in "JSON checksum" section in PROTOCOL.md. - final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def treeNodeToChecksum(treeNode: JsonNode): String
Canonicalizes the given
treeNodejson and returns its md5 checksum.Canonicalizes the given
treeNodejson and returns its md5 checksum. Refer to "JSON checksum" section in PROTOCOL.md for canonicalization steps. - final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()