public interface SparkFileUtils
extends org.apache.spark.internal.Logging
| Modifier and Type | Method and Description |
|---|---|
boolean |
createDirectory(java.io.File dir)
Create a directory given the abstract pathname
|
java.io.File |
createDirectory(String root,
String namePrefix)
Create a directory inside the given parent directory.
|
java.io.File |
createTempDir()
Create a temporary directory inside the
java.io.tmpdir prefixed with spark. |
java.io.File |
createTempDir(String root,
String namePrefix)
Create a temporary directory inside the given parent directory.
|
void |
deleteRecursively(java.io.File file)
Delete a file or directory and its contents recursively.
|
java.io.File[] |
recursiveList(java.io.File f)
Lists files recursively.
|
java.net.URI |
resolveURI(String path)
Return a well-formed URI for the file described by a user input string.
|
$init$, initializeForcefully, initializeLogIfNecessary, initializeLogIfNecessary, initializeLogIfNecessary$default$2, initLock, isTraceEnabled, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarning, org$apache$spark$internal$Logging$$log__$eq, org$apache$spark$internal$Logging$$log_, uninitializejava.net.URI resolveURI(String path)
If the supplied path does not contain a scheme, or is a relative path, it will be converted into an absolute path with a file:// scheme.
path - (undocumented)java.io.File[] recursiveList(java.io.File f)
f - (undocumented)boolean createDirectory(java.io.File dir)
dir - (undocumented)java.io.File createDirectory(String root,
String namePrefix)
root - (undocumented)namePrefix - (undocumented)java.io.File createTempDir()
java.io.tmpdir prefixed with spark.
The directory will be automatically deleted when the VM shuts down.java.io.File createTempDir(String root,
String namePrefix)
root - (undocumented)namePrefix - (undocumented)void deleteRecursively(java.io.File file)
file - (undocumented)