Class ByteBuffersDirectory

All Implemented Interfaces:
Closeable, AutoCloseable

public final class ByteBuffersDirectory extends BaseDirectory
A ByteBuffer-based Directory implementation that can be used to store index files on the heap.

Important: Note that MMapDirectory is nearly always a better choice as it uses OS caches more effectively (through memory-mapped buffers). A heap-based directory like this one can have the advantage in case of ephemeral, small, short-lived indexes when disk syncs provide an additional overhead.

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