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

tech.ytsaurus.spyt.fs.PathUtils.scala Maven / Gradle / Ivy

The newest version!
package tech.ytsaurus.spyt.fs

import org.apache.hadoop.fs.Path

object PathUtils {
  def hadoopPathToYt(f: Path): String = {
    f.toUri.getPath
  }

  def hadoopPathToYt(f: String): String = {
    hadoopPathToYt(new Path(f))
  }

  def getMetaPath(f: String): String = {
    s"${f}_meta"
  }

  def getMetaPath(f: Path): String = {
    getMetaPath(f.toString)
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy