com.atlassian.confluence.search.lucene.tasks
Class AddDocumentIndexTask

java.lang.Object
  extended by com.atlassian.confluence.search.lucene.tasks.AddDocumentIndexTask
All Implemented Interfaces:
com.atlassian.bonnie.ILuceneConnection.WriterAction, HandleAware, IndexTask, ConfluenceIndexTask

public class AddDocumentIndexTask
extends Object
implements ConfluenceIndexTask, HandleAware

Adds a searchable to the index.


Field Summary
static org.apache.log4j.Logger log
          Deprecated. since 3.1, use private logger
 
Constructor Summary
AddDocumentIndexTask(com.atlassian.bonnie.Searchable searchable, com.atlassian.bonnie.search.DocumentBuilder documentBuilder)
           
 
Method Summary
 boolean equals(Object o)
           
 String getDescription()
          A human readable description of this index task.
 com.atlassian.bonnie.Handle getHandle()
           
 int hashCode()
           
 void perform(org.apache.lucene.index.IndexWriter writer)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

@Deprecated
public static final org.apache.log4j.Logger log
Deprecated. since 3.1, use private logger
Constructor Detail

AddDocumentIndexTask

public AddDocumentIndexTask(com.atlassian.bonnie.Searchable searchable,
                            com.atlassian.bonnie.search.DocumentBuilder documentBuilder)
Method Detail

perform

public void perform(org.apache.lucene.index.IndexWriter writer)
             throws IOException
Specified by:
perform in interface com.atlassian.bonnie.ILuceneConnection.WriterAction
Throws:
IOException

getDescription

public String getDescription()
A human readable description of this index task.

Specified by:
getDescription in interface IndexTask
Returns:
an readable message.

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getHandle

public com.atlassian.bonnie.Handle getHandle()
Specified by:
getHandle in interface HandleAware
Returns:
the handle


Copyright © 2003–2015 Atlassian. All rights reserved.