org.enhydra.snapper.api
Interface Reader
- All Known Implementing Classes:
- LuceneReader
- public interface Reader
Searcher is a searching service. For example, Lucene index search engine
- Author:
- Igor Smirnov
setUpReader
public void setUpReader(java.lang.String name)
throws java.io.IOException
- Throws:
java.io.IOException
unlock
public void unlock()
fileExists
public boolean fileExists(java.io.File fileToCheck)
throws java.lang.Exception
- Throws:
java.lang.Exception
fileExists
public boolean fileExists(java.lang.String path)
throws java.lang.Exception
- Throws:
java.lang.Exception
checkLastModified
public boolean checkLastModified(java.io.File fileToCheck)
throws java.lang.Exception
- Throws:
java.lang.Exception
checkLastModified
public boolean checkLastModified(java.io.File fileToCheck,
long modified)
throws java.lang.Exception
- Throws:
java.lang.Exception
checkLastModified
public boolean checkLastModified(java.lang.String path,
long modified)
throws java.lang.Exception
- Throws:
java.lang.Exception
deleteFile
public void deleteFile(java.io.File file)
throws java.lang.Exception
- Throws:
java.lang.Exception
closeReader
public void closeReader()
throws java.lang.Exception
- Throws:
java.lang.Exception
checkDeleted
public java.util.Vector checkDeleted(java.util.TreeSet filesToCheck)
getSize
public int getSize()
lastModified
public long lastModified()
removeDocuments
public void removeDocuments(java.util.Map modifiedData)
throws java.lang.Exception
- Throws:
java.lang.Exception