org.apache.lucene.store
Class MMapDirectory
- java.lang.Object
-
- org.apache.lucene.store.Directory
-
- org.apache.lucene.store.FSDirectory
-
- org.apache.lucene.store.MMapDirectory
-
public class MMapDirectory extends FSDirectory
File-basedDirectoryimplementation that uses mmap for input.To use this, invoke Java with the System property org.apache.lucene.FSDirectory.class set to org.apache.lucene.store.MMapDirectory. This will cause
FSDirectory.getDirectory(File,boolean)to return instances of this class.
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.store.FSDirectory
LOCK_DIR
-
-
Constructor Summary
Constructors Constructor and Description MMapDirectory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description IndexInputopenInput(java.lang.String name)Returns a stream reading an existing file.IndexInputopenInput(java.lang.String name, int bufferSize)Returns a stream reading an existing file, with the specified read buffer size.-
Methods inherited from class org.apache.lucene.store.FSDirectory
close, createOutput, deleteFile, fileExists, fileLength, fileModified, fileModified, getDirectory, getDirectory, getDirectory, getDirectory, getDirectory, getDirectory, getDisableLocks, getFile, getLockID, list, renameFile, setDisableLocks, toString, touchFile
-
Methods inherited from class org.apache.lucene.store.Directory
clearLock, copy, getLockFactory, makeLock, setLockFactory
-
-
-
-
Method Detail
-
openInput
public IndexInput openInput(java.lang.String name) throws java.io.IOException
Description copied from class:DirectoryReturns a stream reading an existing file.- Overrides:
openInputin classFSDirectory- Throws:
java.io.IOException
-
openInput
public IndexInput openInput(java.lang.String name, int bufferSize) throws java.io.IOException
Description copied from class:DirectoryReturns a stream reading an existing file, with the specified read buffer size. The particular Directory implementation may ignore the buffer size. Currently the only Directory implementations that respect this parameter areFSDirectoryandCompoundFileReader.- Overrides:
openInputin classFSDirectory- Throws:
java.io.IOException
-
-
DataMelt 3.0 © DataMelt by jWork.ORG