com.atlassian.jira.issue.index
Class SingleThreadedIssueIndexer

java.lang.Object
  extended bycom.atlassian.jira.issue.index.SingleThreadedIssueIndexer
All Implemented Interfaces:
IssueIndexer
Direct Known Subclasses:
MultiThreadedIssueIndexer

public class SingleThreadedIssueIndexer
extends Object
implements IssueIndexer


Constructor Summary
SingleThreadedIssueIndexer()
           
 
Method Summary
protected  void indexComments(org.ofbiz.core.entity.GenericValue issue, org.apache.lucene.index.IndexWriter commentIndexWriter)
          Index a single issue's related comments.
protected  void indexIssue(org.ofbiz.core.entity.GenericValue issue, org.apache.lucene.index.IndexWriter issueIndexWriter)
          Index a single issue.
 void indexIssues(Collection issues, org.apache.lucene.index.IndexWriter issueIndexWriter, org.apache.lucene.index.IndexWriter commentIndexWriter, com.atlassian.johnson.event.Event event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleThreadedIssueIndexer

public SingleThreadedIssueIndexer()
Method Detail

indexIssue

protected void indexIssue(org.ofbiz.core.entity.GenericValue issue,
                          org.apache.lucene.index.IndexWriter issueIndexWriter)
                   throws IOException
Index a single issue. Note that this does not index related comments. It does not open or close any of the readers or writers.

Parameters:
issue - The issue to index
issueIndexWriter - An open writer to write the issue to
Throws:
IOException - If there was a problem writing the issue

indexComments

protected void indexComments(org.ofbiz.core.entity.GenericValue issue,
                             org.apache.lucene.index.IndexWriter commentIndexWriter)
                      throws org.ofbiz.core.entity.GenericEntityException,
                             IOException
Index a single issue's related comments. It does not open or close any of the readers or writers.

Parameters:
issue - The issue to index
commentIndexWriter - An open writer to write the comments to
Throws:
IOException - If there was a problem writing the comments
org.ofbiz.core.entity.GenericEntityException - If there was a problem getting the related comments

indexIssues

public void indexIssues(Collection issues,
                        org.apache.lucene.index.IndexWriter issueIndexWriter,
                        org.apache.lucene.index.IndexWriter commentIndexWriter,
                        com.atlassian.johnson.event.Event event)
                 throws Exception
Specified by:
indexIssues in interface IssueIndexer
Throws:
Exception


Copyright © 2002-2006 Atlassian. All Rights Reserved.