org.apache.lenya.lucene.index
Class AbstractIndexIteratorHandler

java.lang.Object
  extended by org.apache.lenya.lucene.index.AbstractIndexIteratorHandler
All Implemented Interfaces:
IndexIteratorHandler
Direct Known Subclasses:
AbstractIndexer.DeleteHandler, AbstractIndexer.IndexHandler, IndexInformation.CreateHandler, IndexInformation.UpdateHandler

public abstract class AbstractIndexIteratorHandler
extends java.lang.Object
implements IndexIteratorHandler


Constructor Summary
AbstractIndexIteratorHandler()
          Creates a new instance of AbstractIndexIteratorHandler
 
Method Summary
 void handleFile(org.apache.lucene.index.IndexReader reader, java.io.File file)
          Handles a file.
 void handleNewDocument(org.apache.lucene.index.IndexReader reader, org.apache.lucene.index.Term term, java.io.File file)
          Handles an unmodified document and the file that represents it.
 void handleStaleDocument(org.apache.lucene.index.IndexReader reader, org.apache.lucene.index.Term term)
          Handles a stale document.
 void handleUnmodifiedDocument(org.apache.lucene.index.IndexReader reader, org.apache.lucene.index.Term term, java.io.File file)
          Handles a stale document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractIndexIteratorHandler

public AbstractIndexIteratorHandler()
Creates a new instance of AbstractIndexIteratorHandler

Method Detail

handleStaleDocument

public void handleStaleDocument(org.apache.lucene.index.IndexReader reader,
                                org.apache.lucene.index.Term term)
Handles a stale document.

Specified by:
handleStaleDocument in interface IndexIteratorHandler

handleUnmodifiedDocument

public void handleUnmodifiedDocument(org.apache.lucene.index.IndexReader reader,
                                     org.apache.lucene.index.Term term,
                                     java.io.File file)
Handles a stale document.

Specified by:
handleUnmodifiedDocument in interface IndexIteratorHandler

handleNewDocument

public void handleNewDocument(org.apache.lucene.index.IndexReader reader,
                              org.apache.lucene.index.Term term,
                              java.io.File file)
Handles an unmodified document and the file that represents it.

Specified by:
handleNewDocument in interface IndexIteratorHandler

handleFile

public void handleFile(org.apache.lucene.index.IndexReader reader,
                       java.io.File file)
Handles a file. This is called for every file and mainly used for creating a new index.

Specified by:
handleFile in interface IndexIteratorHandler


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.