Packages

object HDFSUtil

HDFS helper routines

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HDFSUtil
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @IntrinsicCandidate()
  6. def copyFile(from: String, to: String)(implicit spark: SparkSession): Unit

    Copy a file from one path to another

  7. def deleteRecursive(location: String)(implicit spark: SparkSession): Unit
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def fileExists(path: String)(implicit spark: SparkSession): Boolean

    Does the file exist in HDFS?

  11. def findFiles(path: String, extension: String)(implicit spark: SparkSession): List[String]

    Recursively get file names with a given extension in a directory

  12. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  13. def getInputStream(location: String)(implicit spark: SparkSession): FSDataInputStream

    Obtain an input stream for an HDFS location

  14. def getPrintWriter(location: String)(implicit spark: SparkSession): PrintWriter

    Obtain a PrintWriter for an HDFS location, creating or overwriting a file

  15. def getSource(location: String)(implicit spark: SparkSession): Source

    Obtain a Source for an HDFS location

  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  17. def isAbsolutePath(path: String): Boolean

    Is the path absolute?

  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. def makeQualified(path: String)(implicit spark: SparkSession): String

    Qualify the path (e.g.

    Qualify the path (e.g. make it absolute if it is relative)

  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  23. def readProperties(location: String)(implicit spark: SparkSession): Properties

    Read a properties object from a HDFS location

  24. def subdirectories(path: String)(implicit spark: SparkSession): List[String]

    Get all subdirectories of a directory

  25. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. def usingWriter(location: String, writeFun: (PrintWriter) ⇒ Unit)(implicit spark: SparkSession): Unit

    Create a PrintWriter, use it to write output, then close it safely.

  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. def writeProperties(location: String, data: Properties, comment: String)(implicit spark: SparkSession): Unit

    Write a properties object to a HDFS location

  32. def writeTextFile(location: String, data: String)(implicit spark: SparkSession): Unit

    Write a text file to a HDFS location

  33. def writeTextLines(location: String, lines: Iterator[String])(implicit spark: SparkSession): Unit

    Write lines of text to a HDFS location

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped