com.atlassian.bonnie.index
Interface BatchOpIndexer.DocumentWritingScheme

All Known Implementing Classes:
BaseDocumentWritingScheme
Enclosing interface:
BatchOpIndexer

public static interface BatchOpIndexer.DocumentWritingScheme

Writes documents. Possible implementations include adding documents to a writer directly or adding them to a queue.

ObjectQueue.Processors create Documents, and will pass them in to this interface for writing.


Method Summary
 void close(LuceneConnection conn)
          Release any open resources.
 void runComplete()
          Signify that the QueueProcessingRunnableImpl has completed.
 void setProgressWrapper(com.atlassian.core.util.ProgressWrapper progress)
           
 void write(org.apache.lucene.document.Document doc)
          Write a created document.
 

Method Detail

write

public void write(org.apache.lucene.document.Document doc)
Write a created document.

Parameters:
doc -

runComplete

public void runComplete()
Signify that the QueueProcessingRunnableImpl has completed.


close

public void close(LuceneConnection conn)
           throws java.io.IOException
Release any open resources.

Throws:
java.io.IOException

setProgressWrapper

public void setProgressWrapper(com.atlassian.core.util.ProgressWrapper progress)


Copyright © 2006-2009 Atlassian Software Systems Pty Ltd. All Rights Reserved.