final class Fingerprints extends AnyRef
Fingerprints of compilation. They are constructed from both source code and configuration. The library uses the fingerprints, for example, to verify that the incremental compilation is done using the same setup as a previous full compilation, and to disable incremental compilation otherwise.
- Alphabetic
- By Inheritance
- Fingerprints
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
Fingerprints(frameworkVersion: String, compilerVersion: String, configurationHashCode: Int, scalaBinaryVersion: String, inputCatalogSubsetsFingerprints: Map[String, String] = Map.empty, customHashCodes: Map[String, Int] = Map.empty, customUnnamedHashCodes: List[Int] = Nil)
- frameworkVersion
The version of the processing library creating the fingerprints.
- compilerVersion
The version of the compiler creating the fingerprints.
- configurationHashCode
The hash code of the compiler configuration.
- scalaBinaryVersion
The Scala version substring describing binary compatibility this version of the processing library depends on.
- inputCatalogSubsetsFingerprints
Subsets fingerprints of all access restricted input catalogs.
- customHashCodes
Map of custom hash codes, indexed by unique IDs. These can be used to store in the fingerprints additional hashes of data that is used for compilation but it is not passed as inData to the executors. Storing this information is important as incremental compilation must be disabled if this data changes. For example, hash codes of the broadcast variables used by one or more driver task can be stored here.
- customUnnamedHashCodes
Sequence of unnamed custom hash codes. Unlike the named hash codes, the order of insertion is significant in this case.
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
-
def
addCustomHash(hash: Int): Unit
Adds a custom hash code to fingerprints.
Adds a custom hash code to fingerprints.
You can use this function if you have custom data that may affect compilation, to disable incremental compilation in case it changes.
- hash
The hash code to be added.
-
def
addCustomHash(hash: Int, id: String): Unit
Adds a custom hash code to fingerprints.
Adds a custom hash code to fingerprints.
You can use this function if you have custom data that may affect compilation, to disable incremental compilation in case it changes.
- hash
The hash code to be added.
- id
The ID of the custom hash code. Hash codes with IDs can be provided in any order.
-
def
aggregatedCustomHashCodes: Int
The custom named hash codes aggregated into a single one.
-
def
aggregatedCustomUnnamedHashCodes: Int
The custom unnamed hash codes aggregated into a single one.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- val compilerVersion: String
- val configurationHashCode: Int
-
def
copy(frameworkVersion: String = frameworkVersion, compilerVersion: String = compilerVersion, configurationHashCode: Int = configurationHashCode, scalaBinaryVersion: String = scalaBinaryVersion, inputCatalogSubsetsFingerprints: Map[String, String] = inputCatalogSubsetsFingerprints, customHashCodes: Map[String, Int] = customHashCodes, customUnnamedHashCodes: List[Int] = customUnnamedHashCodes): Fingerprints
Creates a copy of the fingerprints, optionally overriding each component.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(that: Any): Boolean
equals method override.
equals method override.
- Definition Classes
- Fingerprints → AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- val frameworkVersion: String
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
hashCode method override.
hashCode method override.
- Definition Classes
- Fingerprints → AnyRef → Any
-
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()
- val scalaBinaryVersion: String
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toJSON: JObject
Converts the fingerprints object to JSON.
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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()