Class FsDirectoryFactory.AlwaysDirectIODirectory

java.lang.Object
org.apache.lucene.store.Directory
org.apache.lucene.store.FilterDirectory
org.apache.lucene.misc.store.DirectIODirectory
org.elasticsearch.index.store.FsDirectoryFactory.AlwaysDirectIODirectory
All Implemented Interfaces:
Closeable, AutoCloseable
Enclosing class:
FsDirectoryFactory

public static final class FsDirectoryFactory.AlwaysDirectIODirectory extends org.apache.lucene.misc.store.DirectIODirectory
  • Field Summary

    Fields inherited from class org.apache.lucene.misc.store.DirectIODirectory

    DEFAULT_MERGE_BUFFER_SIZE, DEFAULT_MIN_BYTES_DIRECT

    Fields inherited from class org.apache.lucene.store.FilterDirectory

    in
  • Constructor Summary

    Constructors
    Constructor
    Description
    AlwaysDirectIODirectory(org.apache.lucene.store.FSDirectory delegate, int mergeBufferSize, long minBytesDirect, int asyncPrefetchLimit)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.lucene.store.IndexInput
    openInput(String name, org.apache.lucene.store.IOContext context)
     
    protected boolean
    useDirectIO(String name, org.apache.lucene.store.IOContext context, OptionalLong fileLength)
     

    Methods inherited from class org.apache.lucene.misc.store.DirectIODirectory

    close, createOutput, ensureOpen, getDirectory

    Methods inherited from class org.apache.lucene.store.FilterDirectory

    createTempOutput, deleteFile, fileLength, getDelegate, getPendingDeletions, listAll, obtainLock, rename, sync, syncMetaData, toString, unwrap

    Methods inherited from class org.apache.lucene.store.Directory

    copyFrom, getTempFileName, openChecksumInput

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • AlwaysDirectIODirectory

      public AlwaysDirectIODirectory(org.apache.lucene.store.FSDirectory delegate, int mergeBufferSize, long minBytesDirect, int asyncPrefetchLimit) throws IOException
      Throws:
      IOException
  • Method Details

    • useDirectIO

      protected boolean useDirectIO(String name, org.apache.lucene.store.IOContext context, OptionalLong fileLength)
      Overrides:
      useDirectIO in class org.apache.lucene.misc.store.DirectIODirectory
    • openInput

      public org.apache.lucene.store.IndexInput openInput(String name, org.apache.lucene.store.IOContext context) throws IOException
      Overrides:
      openInput in class org.apache.lucene.misc.store.DirectIODirectory
      Throws:
      IOException