org.apache.lucene.store

Class MMapDirectory


public class MMapDirectory
extends FSDirectory

File-based 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.

Field Summary

Fields inherited from class org.apache.lucene.store.FSDirectory

LOCK_DIR

Method Summary

IndexInput
openInput(String name)
Returns a stream reading an existing file.

Methods inherited from class org.apache.lucene.store.FSDirectory

close, createOutput, deleteFile, fileExists, fileLength, fileModified, fileModified, getDirectory, getDirectory, getDisableLocks, getFile, list, makeLock, openInput, renameFile, setDisableLocks, toString, touchFile

Methods inherited from class org.apache.lucene.store.Directory

close, createFile, createOutput, deleteFile, fileExists, fileLength, fileModified, list, makeLock, openFile, openInput, renameFile, touchFile

Method Details

openInput

public IndexInput openInput(String name)
            throws IOException
Returns a stream reading an existing file.
Overrides:
openInput in interface FSDirectory

Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.