Module org.elasticsearch.server
Package org.elasticsearch.index.store
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_DIRECTFields inherited from class org.apache.lucene.store.FilterDirectory
in -
Constructor Summary
ConstructorsConstructorDescriptionAlwaysDirectIODirectory(org.apache.lucene.store.FSDirectory delegate, int mergeBufferSize, long minBytesDirect, int asyncPrefetchLimit) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.store.IndexInputprotected booleanuseDirectIO(String name, org.apache.lucene.store.IOContext context, OptionalLong fileLength) Methods inherited from class org.apache.lucene.misc.store.DirectIODirectory
close, createOutput, ensureOpen, getDirectoryMethods inherited from class org.apache.lucene.store.FilterDirectory
createTempOutput, deleteFile, fileLength, getDelegate, getPendingDeletions, listAll, obtainLock, rename, sync, syncMetaData, toString, unwrapMethods inherited from class org.apache.lucene.store.Directory
copyFrom, getTempFileName, openChecksumInput
-
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:
useDirectIOin classorg.apache.lucene.misc.store.DirectIODirectory
-
openInput
public org.apache.lucene.store.IndexInput openInput(String name, org.apache.lucene.store.IOContext context) throws IOException - Overrides:
openInputin classorg.apache.lucene.misc.store.DirectIODirectory- Throws:
IOException
-