com.atlassian.confluence.search.lucene.tasks
Class AddDocumentIndexTask
java.lang.Object
com.atlassian.confluence.search.lucene.tasks.AddDocumentIndexTask
- All Implemented Interfaces:
- com.atlassian.bonnie.ILuceneConnection.WriterAction, HandleAware, IndexTask, ConfluenceIndexTask
public class AddDocumentIndexTask
- extends java.lang.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(java.lang.Object o)
|
java.lang.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 |
log
@Deprecated
public static final org.apache.log4j.Logger log
- Deprecated. since 3.1, use private logger
AddDocumentIndexTask
public AddDocumentIndexTask(com.atlassian.bonnie.Searchable searchable,
com.atlassian.bonnie.search.DocumentBuilder documentBuilder)
perform
public void perform(org.apache.lucene.index.IndexWriter writer)
throws java.io.IOException
- Specified by:
perform
in interface com.atlassian.bonnie.ILuceneConnection.WriterAction
- Throws:
java.io.IOException
getDescription
public java.lang.String getDescription()
- A human readable description of this index task.
- Specified by:
getDescription
in interface IndexTask
- Returns:
- an readable message.
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
getHandle
public com.atlassian.bonnie.Handle getHandle()
- Specified by:
getHandle
in interface HandleAware
- Returns:
- the handle
Copyright © 2003-2014 Atlassian. All Rights Reserved.