Package-level declarations

Types

Link copied to clipboard

Base class for Directories that "chunk" the input into blocks.

Link copied to clipboard

Base class for Directory implementations.

Link copied to clipboard

Minimal port of Lucene's BaseDirectoryWrapper. Only provides basic tracking of open state and a toggle for running checkIndex on close. The actual checkIndex logic is not implemented yet.

Link copied to clipboard

Base class for per-LockFactory tests.

Link copied to clipboard
open class CorruptingIndexOutput(dir: Directory, byteToCorrupt: Long, out: IndexOutput) : FilterIndexOutput

Corrupts one bit of a file after close.

Link copied to clipboard

This is a Directory Wrapper that adds methods intended to be used only by unit tests. It also adds a number of features useful for testing:

Link copied to clipboard
open class MockIndexInputWrapper(dir: MockDirectoryWrapper, val name: String, delegate: IndexInput, parent: MockIndexInputWrapper?, readAdvice: ReadAdvice, confined: Boolean) : FilterIndexInput

Used by MockDirectoryWrapper to create an input stream that keeps track of when it's been closed.

Link copied to clipboard

Used to create an output stream that will throw an IOException on fake disk full, track max disk space actually used, and maybe throw random IOExceptions.

Link copied to clipboard

Delegates all operations, even optional ones, to the wrapped directory.

Link copied to clipboard

A Directory wrapper that counts the number of times that Lucene may wait for I/O to return serially. Lower counts mean that Lucene better takes advantage of I/O parallelism.