FileSwitchDirectory
Expert: A Directory instance that switches files between two other Directory instances.
Files with the specified extensions are placed in the primary directory; others are placed in the secondary directory.
Constructors
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.
Return the primary directory
Return the secondary 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.