| |
|
| org.sakaiproject.search.index.IndexStorage
All known Subclasses: org.sakaiproject.search.index.impl.FSIndexStorage, org.sakaiproject.search.index.impl.ClusterFSIndexStorage, org.sakaiproject.search.index.impl.SearchIndexStorage,
IndexStorage | public interface IndexStorage extends Diagnosable(Code) | | Defines the IndexStorage mechanism used
author: ieb |
centralIndexExists | boolean centralIndexExists()(Code) | | A fast method that checks if the index exists in the cluster
without opening or loading the index. Is local, looking on local
disk is enough.
|
closeIndexReader | void closeIndexReader(IndexReader indexReader) throws IOException(Code) | | This will close the index reader and release any locks
Parameters: indexReader - throws: IOException - |
closeIndexSearcher | void closeIndexSearcher(IndexSearcher oldRunningIndexSearcher)(Code) | | |
closeIndexWriter | void closeIndexWriter(IndexWriter indexWrite) throws IOException(Code) | | this will close the index reader and release any locks
Parameters: indexWrite - throws: IOException - |
doPostIndexUpdate | void doPostIndexUpdate() throws IOException(Code) | | perform all operations necessary after an update cycle
throws: IOException - |
getAnalyzer | Analyzer getAnalyzer()(Code) | | Get an analyzer correct for the indexer being used.
|
getIndexWriter | IndexWriter getIndexWriter(boolean create) throws IOException(Code) | | get an index writer, and create if asked to
Parameters: create - throws: IOException - |
getLastUpdate | long getLastUpdate()(Code) | | |
getSegmentInfoList | List getSegmentInfoList()(Code) | | |
indexExists | boolean indexExists()(Code) | | Does the index exist
|
isMultipleIndexers | boolean isMultipleIndexers()(Code) | | Returns true if its ok to allow multiple indexers to run at the same time
The index storage may manage its own locks.
|
setLocation | void setLocation(String location)(Code) | | The location of the storage
Parameters: location - |
setRecoverCorruptedIndex | void setRecoverCorruptedIndex(boolean recover)(Code) | | if set to true the IndexStorageWill automatically attempt to recover a corrupted index
Not all IndexStorage implementations can do this,
|
|
|
|