etljobs.etlsteps.package.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of etljobs_2.12 Show documentation
Show all versions of etljobs_2.12 Show documentation
Scala Etl library for Spark and Bigquery
The newest version!
package etljobs
import org.apache.spark.sql.Dataset
// import scala.reflect.runtime.universe.TypeTag
// import monocle.Iso
package object etlsteps {
type StateLessEtlStep = EtlStep[Unit,Unit]
case class DatasetWithState[T, S](ds: Dataset[T], state: S = Unit)
// type DatasetWoState[T] = DatasetWithState[T, Unit]
// def change[T]:Iso[DatasetWoState[T], Dataset[T]] = Iso[DatasetWoState[T], Dataset[T]](_.ds){ds => DatasetWithState(ds)}
// implicit def convertToDataset[T <: Product: TypeTag](in: DatasetWithState[T, Unit]): Dataset[T] = in.ds
// implicit def convertToDatasetWoState[T <: Product: TypeTag](ds: Dataset[T]): DatasetWoState[T] = DatasetWithState(ds)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy