Module org.elasticsearch.server
Package org.elasticsearch.index.store
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
directoryFields inherited from class org.apache.lucene.store.BaseDirectory
isOpen, lockFactory -
Constructor Summary
ConstructorsConstructorDescriptionHybridDirectory(org.apache.lucene.store.LockFactory lockFactory, org.apache.lucene.store.MMapDirectory delegate, int asyncPrefetchLimit) -
Method Summary
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, toStringMethods inherited from class org.apache.lucene.store.BaseDirectory
ensureOpen, obtainLockMethods inherited from class org.apache.lucene.store.Directory
copyFrom, getTempFileName, openChecksumInput
-
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:
openInputin classorg.apache.lucene.store.NIOFSDirectory- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classorg.apache.lucene.store.FSDirectory- Throws:
IOException
-