bio.ferlab.datalake.commons.config.BaseDatasets.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datalake-commons_2.12 Show documentation
Show all versions of datalake-commons_2.12 Show documentation
Library built on top of Apache Spark to speed-up data lakes development..
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))
}