org.enhydra.snapper.wrapper.lucene
Class LuceneReader
java.lang.Object
org.enhydra.snapper.wrapper.lucene.LuceneReader
- All Implemented Interfaces:
- Reader
public class LuceneReader
- extends java.lang.Object
- implements Reader
- Author:
- Igor Smirnov
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LuceneReader
public LuceneReader()
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