Class SimpleFSDirectory

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public class SimpleFSDirectory
    extends FSDirectory
    A straightforward implementation of FSDirectory using java.io.RandomAccessFile. However, this class has poor concurrent performance (multiple threads will bottleneck) as it synchronizes when multiple threads read from the same file. It's usually better to use NIOFSDirectory or MMapDirectory instead.
Overrides:
createSlicer in class Directory
Throws:
IOException - if an IOException occurs