org.apache.nutch.indexer
Class FsDirectory

java.lang.Object
  extended byorg.apache.lucene.store.Directory
      extended byorg.apache.nutch.indexer.FsDirectory

public class FsDirectory
extends Directory

Reads a Lucene index stored in DFS.


Constructor Summary
FsDirectory(FileSystem fs, Path directory, boolean create, Configuration conf)
           
 
Method Summary
 void close()
           
 IndexOutput createOutput(String name)
           
 void deleteFile(String name)
           
 boolean fileExists(String name)
           
 long fileLength(String name)
           
 long fileModified(String name)
           
 String[] list()
           
 Lock makeLock(String name)
           
 IndexInput openInput(String name)
           
 void renameFile(String from, String to)
           
 String toString()
           
 void touchFile(String name)
           
 
Methods inherited from class org.apache.lucene.store.Directory
createFile, openFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FsDirectory

public FsDirectory(FileSystem fs,
                   Path directory,
                   boolean create,
                   Configuration conf)
            throws IOException
Method Detail

list

public String[] list()
              throws IOException
Throws:
IOException

fileExists

public boolean fileExists(String name)
                   throws IOException
Throws:
IOException

fileModified

public long fileModified(String name)

touchFile

public void touchFile(String name)

fileLength

public long fileLength(String name)
                throws IOException
Throws:
IOException

deleteFile

public void deleteFile(String name)
                throws IOException
Throws:
IOException

renameFile

public void renameFile(String from,
                       String to)
                throws IOException
Throws:
IOException

createOutput

public IndexOutput createOutput(String name)
                         throws IOException
Throws:
IOException

openInput

public IndexInput openInput(String name)
                     throws IOException
Throws:
IOException

makeLock

public Lock makeLock(String name)

close

public void close()
           throws IOException
Throws:
IOException

toString

public String toString()


Copyright © 2006 The Apache Software Foundation