Snapper 3.0 API

org.enhydra.snapper.wrapper.lucene
Class LuceneReader

java.lang.Object
  extended by org.enhydra.snapper.wrapper.lucene.LuceneReader
All Implemented Interfaces:
Reader

public class LuceneReader
extends java.lang.Object
implements Reader

Author:
Igor Smirnov

Constructor Summary
LuceneReader()
           
 
Method Summary
 java.util.Vector checkDeleted(java.util.TreeSet filesToCheck)
           
 boolean checkLastModified(java.io.File fileToCheck)
           
 boolean checkLastModified(java.io.File fileToCheck, long timestamp)
           
 boolean checkLastModified(java.lang.String path, long modified)
           
 void closeReader()
           
 void deleteFile(java.io.File file)
           
 boolean fileExists(java.io.File fileToCheck)
           
 boolean fileExists(java.lang.String path)
           
 int getSize()
           
 long lastModified()
           
 void removeDocuments(java.util.Map data)
           
 void setUpReader(java.lang.String dir)
           
 void unlock()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LuceneReader

public LuceneReader()
Method Detail

setUpReader

public void setUpReader(java.lang.String dir)
                 throws java.io.IOException
Specified by:
setUpReader in interface Reader
Throws:
java.io.IOException

unlock

public void unlock()
Specified by:
unlock in interface Reader

fileExists

public boolean fileExists(java.io.File fileToCheck)
                   throws java.lang.Exception
Specified by:
fileExists in interface Reader
Throws:
java.lang.Exception

fileExists

public boolean fileExists(java.lang.String path)
                   throws java.lang.Exception
Specified by:
fileExists in interface Reader
Throws:
java.lang.Exception

checkLastModified

public boolean checkLastModified(java.io.File fileToCheck)
                          throws java.lang.Exception
Specified by:
checkLastModified in interface Reader
Throws:
java.lang.Exception

checkLastModified

public boolean checkLastModified(java.lang.String path,
                                 long modified)
                          throws java.lang.Exception
Specified by:
checkLastModified in interface Reader
Throws:
java.lang.Exception

checkLastModified

public boolean checkLastModified(java.io.File fileToCheck,
                                 long timestamp)
                          throws java.lang.Exception
Specified by:
checkLastModified in interface Reader
Throws:
java.lang.Exception

deleteFile

public void deleteFile(java.io.File file)
                throws java.lang.Exception
Specified by:
deleteFile in interface Reader
Throws:
java.lang.Exception

closeReader

public void closeReader()
                 throws java.lang.Exception
Specified by:
closeReader in interface Reader
Throws:
java.lang.Exception

checkDeleted

public java.util.Vector checkDeleted(java.util.TreeSet filesToCheck)
Specified by:
checkDeleted in interface Reader

getSize

public int getSize()
Specified by:
getSize in interface Reader

lastModified

public long lastModified()
Specified by:
lastModified in interface Reader

removeDocuments

public void removeDocuments(java.util.Map data)
                     throws java.lang.Exception
Specified by:
removeDocuments in interface Reader
Throws:
java.lang.Exception

Snapper 3.0 API