Skip to content

Latest commit

 

History

History
124 lines (84 loc) · 3.15 KB

spark-sql-streaming-CheckpointFileManager.adoc

File metadata and controls

124 lines (84 loc) · 3.15 KB

CheckpointFileManager Contract

CheckpointFileManager is the abstraction of checkpoint managers that can FIXME.

Table 1. CheckpointFileManager Contract
Method Description

createAtomic

createAtomic(
  path: Path,
  overwriteIfPossible: Boolean): CancellableFSDataOutputStream

Used when:

delete

delete(path: Path): Unit

Deletes a path recursively (if it exists)

Used when:

exists

exists(path: Path): Boolean

Used when…​FIXME

isLocal

isLocal: Boolean

Does not seem to be used.

list

list(path: Path): Array[FileStatus]
list(path: Path, filter: PathFilter): Array[FileStatus]

Used when…​FIXME

mkdirs

mkdirs(path: Path): Unit

Used when…​FIXME

open

open(path: Path): FSDataInputStream

Opens a file for reading

Used when:

Table 2. CheckpointFileManagers
CheckpointFileManager Description

FileContextBasedCheckpointFileManager

FileSystemBasedCheckpointFileManager