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
void setUpReader(java.lang.String name)
throws java.io.IOException
- Throws:
java.io.IOException
unlock
void unlock()
fileExists
boolean fileExists(java.io.File fileToCheck)
throws java.lang.Exception
- Throws:
java.lang.Exception
fileExists
boolean fileExists(java.lang.String path)
throws java.lang.Exception
- Throws:
java.lang.Exception
checkLastModified
boolean checkLastModified(java.io.File fileToCheck)
throws java.lang.Exception
- Throws:
java.lang.Exception
checkLastModified
boolean checkLastModified(java.io.File fileToCheck,
long modified)
throws java.lang.Exception
- Throws:
java.lang.Exception
checkLastModified
boolean checkLastModified(java.lang.String path,
long modified)
throws java.lang.Exception
- Throws:
java.lang.Exception
deleteFile
void deleteFile(java.io.File file)
throws java.lang.Exception
- Throws:
java.lang.Exception
closeReader
void closeReader()
throws java.lang.Exception
- Throws:
java.lang.Exception
checkDeleted
java.util.Vector checkDeleted(java.util.TreeSet filesToCheck)
getSize
int getSize()
lastModified
long lastModified()
removeDocuments
void removeDocuments(java.util.Map modifiedData)
throws java.lang.Exception
- Throws:
java.lang.Exception