Class FsDirectoryFactory.HybridDirectory

java.lang.Object
org.apache.lucene.store.Directory
org.apache.lucene.store.BaseDirectory
org.apache.lucene.store.FSDirectory
org.apache.lucene.store.NIOFSDirectory
org.elasticsearch.index.store.FsDirectoryFactory.HybridDirectory
All Implemented Interfaces:
Closeable, AutoCloseable
Enclosing class:
FsDirectoryFactory

public static final class FsDirectoryFactory.HybridDirectory extends org.apache.lucene.store.NIOFSDirectory
  • Field Summary

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

    directory

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

    isOpen, lockFactory
  • Constructor Summary

    Constructors
    Constructor
    Description
    HybridDirectory(org.apache.lucene.store.LockFactory lockFactory, org.apache.lucene.store.MMapDirectory delegate, int asyncPrefetchLimit)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    org.apache.lucene.store.IndexInput
    openInput(String name, org.apache.lucene.store.IOContext context)
     

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

    createOutput, createTempOutput, deleteFile, deletePendingFiles, ensureCanRead, fileLength, fsync, getDirectory, getPendingDeletions, listAll, listAll, open, open, rename, sync, syncMetaData, toString

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

    ensureOpen, obtainLock

    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

    • HybridDirectory

      public HybridDirectory(org.apache.lucene.store.LockFactory lockFactory, org.apache.lucene.store.MMapDirectory delegate, int asyncPrefetchLimit) throws IOException
      Throws:
      IOException
  • Method Details

    • 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.store.NIOFSDirectory
      Throws:
      IOException
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Overrides:
      close in class org.apache.lucene.store.FSDirectory
      Throws:
      IOException