|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JournaledIndex
A Journaled index is a in index that contains a number of journaled segments. These segments may be merged into a local index periodically
| Field Summary | |
|---|---|
static String |
DELETE_ON_CLOSE_FILE
A file name that is used to mark if a index should be deleted when its closed. |
| Method Summary | |
|---|---|
void |
addSegment(File f)
Add a transient segment to the journal index |
org.apache.lucene.index.IndexReader |
getDeletionIndexReader()
get an index reader suitable for processing deletes The underlying reader will be bound to the thread, and must be closed, but if closed and annother thread is using it, it will not be closed immediately. |
org.apache.lucene.index.IndexWriter |
getPermanentIndexWriter()
Get an index writer suitable for accessing the current permanent index |
File[] |
getSegments()
get a copy of the segments currently active |
String |
getWorkingSpace()
The workign space associated with the index |
void |
loadIndexReader()
load the shared index reader, but dont return it or bind it to the current thread |
void |
saveSegmentList()
|
void |
setSegments(List<File> keep)
Set the list of segments |
| Methods inherited from interface org.sakaiproject.search.journal.api.JournaledObject |
|---|
aquireReadLock, aquireUpdateLock, debugLock, getJournalSavePoint, getLastJournalEntry, releaseReadLock, releaseUpdateLock, setJournalIndexEntry, setLastJournalEntry |
| Field Detail |
|---|
static final String DELETE_ON_CLOSE_FILE
| Method Detail |
|---|
String getWorkingSpace()
void addSegment(File f)
f -
org.apache.lucene.index.IndexReader getDeletionIndexReader()
throws IOException
IOExceptionFile[] getSegments()
org.apache.lucene.index.IndexWriter getPermanentIndexWriter()
throws IndexTransactionException
IndexTransactionExceptionvoid setSegments(List<File> keep)
keep -
void saveSegmentList()
throws IOException
IOException
void loadIndexReader()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||