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(java.lang.String name)
Returns a stream reading an existing file.
|
IndexInput |
openInput(java.lang.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(java.lang.String name) throws java.io.IOException
DirectoryopenInput in class FSDirectoryjava.io.IOExceptionpublic IndexInput openInput(java.lang.String name, int bufferSize) throws java.io.IOException
DirectoryFSDirectory and CompoundFileReader.openInput in class FSDirectoryjava.io.IOExceptionCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.