Documentation of 'org.apache.lucene.store.MMapDirectory' Java class
MMapDirectory
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.

    • Constructor Detail

      • MMapDirectory

        public MMapDirectory()
    • Method Detail

      • openInput

        public IndexInput openInput(java.lang.String name)
                             throws java.io.IOException
        Description copied from class: Directory
        Returns a stream reading an existing file.
        Overrides:
        openInput in class FSDirectory
        Throws:
        java.io.IOException
      • openInput

        public IndexInput openInput(java.lang.String name,
                                    int bufferSize)
                             throws java.io.IOException
        Description copied from class: Directory
        Returns 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 are FSDirectory and CompoundFileReader.
        Overrides:
        openInput in class FSDirectory
        Throws:
        java.io.IOException

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.