Class DirectIODirectory.DirectIOIndexOutput

java.lang.Object
org.apache.lucene.store.DataOutput
org.apache.lucene.store.IndexOutput
org.apache.lucene.misc.store.DirectIODirectory.DirectIOIndexOutput
All Implemented Interfaces:
Closeable, AutoCloseable
Enclosing class:
DirectIODirectory

private static final class DirectIODirectory.DirectIOIndexOutput extends IndexOutput
  • Field Details

    • buffer

      private final ByteBuffer buffer
    • channel

      private final FileChannel channel
    • digest

      private final Checksum digest
    • filePos

      private long filePos
    • isOpen

      private boolean isOpen
  • Constructor Details

    • DirectIOIndexOutput

      public DirectIOIndexOutput(Path path, String name, int blockSize, int bufferSize) throws IOException
      Creates a new instance of DirectIOIndexOutput for writing index output with direct IO bypassing OS buffer
      Throws:
      UnsupportedOperationException - if the JDK does not support Direct I/O
      IOException - if the operating system or filesystem does not support support Direct I/O or a sufficient equivalent.
  • Method Details