|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.xpn.xwiki.util.AbstractXWikiRunnable
com.xpn.xwiki.plugin.lucene.IndexUpdater
public class IndexUpdater
| Method Summary | |
|---|---|
void |
add(com.xpn.xwiki.doc.XWikiDocument document,
com.xpn.xwiki.doc.XWikiAttachment attachment,
com.xpn.xwiki.XWikiContext context)
|
void |
add(com.xpn.xwiki.doc.XWikiDocument document,
com.xpn.xwiki.XWikiContext context)
|
int |
addAttachmentsOfDocument(com.xpn.xwiki.doc.XWikiDocument document,
com.xpn.xwiki.XWikiContext context)
|
void |
cleanIndex()
|
void |
doExit()
|
org.apache.lucene.store.Directory |
getDirectory()
Return a reference to the directory that this updater is currently working with. |
java.util.List<org.xwiki.observation.event.Event> |
getEvents()
|
long |
getLuceneDocCount()
|
int |
getMaxQueueSize()
|
java.lang.String |
getName()
|
long |
getQueueSize()
|
void |
onEvent(org.xwiki.observation.event.Event event,
java.lang.Object source,
java.lang.Object data)
|
protected org.apache.lucene.index.IndexWriter |
openWriter(boolean create)
|
protected void |
runInternal()
Main loop. |
void |
setAnalyzer(org.apache.lucene.analysis.Analyzer analyzer)
|
| Methods inherited from class com.xpn.xwiki.util.AbstractXWikiRunnable |
|---|
cleanupExecutionContext, initExecutionContext, run |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void doExit()
public org.apache.lucene.store.Directory getDirectory()
protected void runInternal()
runInternal in class com.xpn.xwiki.util.AbstractXWikiRunnableRunnable.run()
protected org.apache.lucene.index.IndexWriter openWriter(boolean create)
throws java.io.IOException
java.io.IOExceptionpublic void setAnalyzer(org.apache.lucene.analysis.Analyzer analyzer)
analyzer - The analyzer to set.public void cleanIndex()
public void add(com.xpn.xwiki.doc.XWikiDocument document,
com.xpn.xwiki.XWikiContext context)
public void add(com.xpn.xwiki.doc.XWikiDocument document,
com.xpn.xwiki.doc.XWikiAttachment attachment,
com.xpn.xwiki.XWikiContext context)
public int addAttachmentsOfDocument(com.xpn.xwiki.doc.XWikiDocument document,
com.xpn.xwiki.XWikiContext context)
public java.lang.String getName()
getName in interface org.xwiki.observation.EventListenerEventListener.getName()public java.util.List<org.xwiki.observation.event.Event> getEvents()
getEvents in interface org.xwiki.observation.EventListenerEventListener.getEvents()
public void onEvent(org.xwiki.observation.event.Event event,
java.lang.Object source,
java.lang.Object data)
onEvent in interface org.xwiki.observation.EventListenerEventListener.onEvent(org.xwiki.observation.event.Event, java.lang.Object,
java.lang.Object)public long getQueueSize()
public long getLuceneDocCount()
public int getMaxQueueSize()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||