com.atlassian.bonnie.index
Interface BatchOpIndexer.DocumentWritingScheme

All Known Implementing Classes:
BaseDocumentWritingScheme, TempDirectoryDocumentWritingScheme
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(ILuceneConnection 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

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

Parameters:
doc -

runComplete

void runComplete()
Signify that the QueueProcessingRunnableImpl has completed.


close

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

Throws:
java.io.IOException

setProgressWrapper

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


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