org.apache.lucene.store
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.FSIndexOutput
LOCK_DIR
lockFactory
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, toString, touchFile
clearLock, copy, getLockFactory, makeLock, setLockFactory
public IndexInput openInput(String name) throws IOException
Directory
openInput
in class FSDirectory
IOException
public IndexInput openInput(String name, int bufferSize) throws IOException
Directory
FSDirectory
and CompoundFileReader
.openInput
in class FSDirectory
IOException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.