public class MMapDirectory extends FSDirectory
Directory implementation 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.
FSDirectory.FSIndexInput, FSDirectory.FSIndexOutputLOCK_DIRlockFactory| Constructor and Description |
|---|
MMapDirectory() |
| Modifier and Type | Method and Description |
|---|---|
IndexInput |
openInput(String name)
Returns a stream reading an existing file.
|
IndexInput |
openInput(String name,
int bufferSize)
Returns a stream reading an existing file, with the
specified read buffer size.
|
close, createOutput, deleteFile, fileExists, fileLength, fileModified, fileModified, getDirectory, getDirectory, getDirectory, getDirectory, getDirectory, getDirectory, getDisableLocks, getFile, getLockID, list, renameFile, setDisableLocks, sync, toString, touchFileclearLock, copy, ensureOpen, getLockFactory, makeLock, setLockFactorypublic IndexInput openInput(String name) throws IOException
DirectoryopenInput in class FSDirectoryIOExceptionpublic IndexInput openInput(String name, int bufferSize) throws IOException
DirectoryFSDirectory and CompoundFileReader.openInput in class FSDirectoryIOExceptionCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.