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

tech.ytsaurus.spyt.wrapper.system.SystemUtils.scala Maven / Gradle / Ivy

The newest version!
package tech.ytsaurus.spyt.wrapper.system

object SystemUtils {
  def isEnabled(name: String): Boolean = {
    sys.env.get(s"SPARK_YT_${formatName(name)}_ENABLED").exists(_.toBoolean)
  }

  def envGet(name: String): Option[String] = sys.env.get(s"SPARK_YT_${formatName(name)}")

  private def formatName(name: String): String = name.toUpperCase()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy