bio.ferlab.datalake.commons.config.TableConf.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
/**
* Configuration for a table
*
* @param database name of the database / schema
* @param name name of the table / view
*/
case class TableConf(database: String,
name: String) {
def fullName: String = {
if (database == "") {
name
} else {
s"${database}.${name}"
}
}
}