LockValidatingDirectoryWrapper
This class makes a best-effort check that a provided Lock is valid before any destructive filesystem operation.
Functions
Creates a new, empty file in the directory and returns an IndexOutput instance for appending data to this file.
Creates a new, empty, temporary file in the directory and returns an IndexOutput instance for appending data to this file.
Removes an existing file in the directory.
Ensures this directory is still open.
Returns the byte length of a file in the directory.
Returns names of all files stored in this directory. The output must be in sorted (UTF-16, java's String.compareTo) order.
Acquires and returns a Lock for a file with the given name.
Opens a checksum-computing stream for reading an existing file.
Opens a stream for reading an existing file.
Ensures that any writes to these files are moved to stable storage (made durable).
Ensures that directory metadata, such as recent file renames, are moved to stable storage.