Class SparkFiles

Object
org.apache.spark.SparkFiles

public class SparkFiles extends Object
Resolves paths to files added through SparkContext.addFile().
  • Constructor Details

    • SparkFiles

      public SparkFiles()
  • Method Details

    • get

      public static String get(String filename)
      Get the absolute path of a file added through SparkContext.addFile().
      Parameters:
      filename - (undocumented)
      Returns:
      (undocumented)
    • getRootDirectory

      public static String getRootDirectory()
      Get the root directory that contains files added through SparkContext.addFile().
      Returns:
      (undocumented)