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

bio.ferlab.datalake.commons.config.DatalakeConf.scala Maven / Gradle / Ivy

There is a newer version: 14.8.0
Show newest version
package bio.ferlab.datalake.commons.config

/**
 * Base configuration needed for an ETL job
 * @param storages list of storages associated with aliases
 * @param sources list of data sources
 * @param args arguments passed to the job
 * @param sparkconf extra configuration for the spark conf
 */
case class DatalakeConf(storages: List[StorageConf] = List(),
                        sources: List[DatasetConf] = List(),
                        args: List[String] = List.empty[String],
                        sparkconf: Map[String, String] = Map()) extends Configuration {

  def +(that: DatalakeConf): DatalakeConf =
    DatalakeConf(
      this.storages ++ that.storages,
      this.sources ++ that.sources,
      this.args ++ that.args,
      this.sparkconf ++ that.sparkconf,
    )
}

object DatalakeConf {
  def empty: DatalakeConf = DatalakeConf()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy