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

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

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

abstract class BaseDatasets {

  def tableDatabase: Option[String]

  def viewDatabase: Option[String]

  def sources: List[DatasetConf]

  def table(tableName: String): Option[TableConf] = tableDatabase.map(t => TableConf(t, tableName))

  def view(viewName: String): Option[TableConf] = viewDatabase.map(v => TableConf(v, viewName))
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy