All Downloads are FREE. Search and download functionalities are using the official Maven repository.

bio.ferlab.datalake.spark3.transformation.HashTransformation.scala Maven / Gradle / Ivy

There is a newer version: 14.8.0
Show newest version
package bio.ferlab.datalake.spark3.transformation

import org.apache.spark.sql.{Column, DataFrame}
import org.apache.spark.sql.functions.lit
import org.apache.spark.sql.types.StringType

sealed trait HashTransformation[A] extends Transformation {self =>
  val columns: A
  val nullValues: Column = lit(null).cast(StringType)
}

object HashTransformation {
  trait SimpleHashTransformation extends HashTransformation[Seq[String]]
  trait DynamicHashTransformation extends HashTransformation[DataFrame => Seq[String]]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy