Class DirectIODirectory

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public class DirectIODirectory
    extends FilterDirectory
    A Directory implementation for all Unixes and Windows that uses DIRECT I/O to bypass OS level IO caching during merging. For all other cases (searching, writing) we delegate to the provided Directory instance.

    See Overview for more details.

    WARNING: this code is very new and quite easily could contain horrible bugs.

    This directory passes Solr and Lucene tests on Linux, OS X, and Windows; other systems should work but have not been tested! Use at your own risk.

    @throws UnsupportedOperationException if the operating system, file system or JDK does not support Direct I/O or a sufficient equivalent.

    WARNING: This API is experimental and might change in incompatible ways in the next release.