Packages

c

org.apache.spark.sql.execution.streaming

FileContextBasedCheckpointFileManager

class FileContextBasedCheckpointFileManager extends CheckpointFileManager with RenameHelperMethods with Logging

An implementation of CheckpointFileManager using Hadoop's FileContext API.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FileContextBasedCheckpointFileManager
  2. Logging
  3. RenameHelperMethods
  4. CheckpointFileManager
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FileContextBasedCheckpointFileManager(path: Path, hadoopConf: Configuration)

Value Members

  1. def createAtomic(path: Path, overwriteIfPossible: Boolean): CancellableFSDataOutputStream

    Create a file and make its contents available atomically after the output stream is closed.

    Create a file and make its contents available atomically after the output stream is closed.

    path

    Path to create

    overwriteIfPossible

    If true, then the implementations must do a best-effort attempt to overwrite the file if it already exists. It should not throw any exception if the file exists. However, if false, then the implementation must not overwrite if the file already exists and must throw FileAlreadyExistsException in that case.

    Definition Classes
    FileContextBasedCheckpointFileManagerCheckpointFileManager
  2. def createTempFile(path: Path): FSDataOutputStream

    Create a file with overwrite.

    Create a file with overwrite.

    Definition Classes
    FileContextBasedCheckpointFileManagerRenameHelperMethods
  3. def delete(path: Path): Unit

    Recursively delete a path if it exists.

    Recursively delete a path if it exists. Should not throw exception if file doesn't exist.

    Definition Classes
    FileContextBasedCheckpointFileManagerCheckpointFileManager
  4. def exists(path: Path): Boolean

    Whether path exists

    Whether path exists

    Definition Classes
    FileContextBasedCheckpointFileManagerCheckpointFileManager
  5. def isLocal: Boolean

    Is the default file system this implementation is operating on the local file system.

    Is the default file system this implementation is operating on the local file system.

    Definition Classes
    FileContextBasedCheckpointFileManagerCheckpointFileManager
  6. def list(path: Path, filter: PathFilter): Array[FileStatus]

    List the files in a path that match a filter.

    List the files in a path that match a filter.

    Definition Classes
    FileContextBasedCheckpointFileManagerCheckpointFileManager
  7. def list(path: Path): Array[FileStatus]

    List all the files in a path.

    List all the files in a path.

    Definition Classes
    CheckpointFileManager
  8. def mkdirs(path: Path): Unit

    Make directory at the give path and all its parent directories as needed.

    Make directory at the give path and all its parent directories as needed.

    Definition Classes
    FileContextBasedCheckpointFileManagerCheckpointFileManager
  9. def open(path: Path): FSDataInputStream

    Open a file for reading, or throw exception if it does not exist.

    Open a file for reading, or throw exception if it does not exist.

    Definition Classes
    FileContextBasedCheckpointFileManagerCheckpointFileManager
  10. def renameTempFile(srcPath: Path, dstPath: Path, overwriteIfPossible: Boolean): Unit

    Rename a file.

    Rename a file.

    srcPath

    Source path to rename

    dstPath

    Destination path to rename to

    overwriteIfPossible

    If true, then the implementations must do a best-effort attempt to overwrite the file if it already exists. It should not throw any exception if the file exists. However, if false, then the implementation must not overwrite if the file already exists and must throw FileAlreadyExistsException in that case.

    Definition Classes
    FileContextBasedCheckpointFileManagerRenameHelperMethods