net.sf.lucis.core.impl
Class DefaultAdder

java.lang.Object
  extended by net.sf.lucis.core.impl.DefaultAdder
All Implemented Interfaces:
Adder

public final class DefaultAdder
extends java.lang.Object
implements Adder

Default adder implementation. Not thread safe.

Author:
Andres Rodriguez.

Constructor Summary
DefaultAdder(WriterConfiguration config, DirectoryProvider provider)
           
 
Method Summary
 void add(org.apache.lucene.document.Document document)
          Adds a document to the index.
 void add(org.apache.lucene.document.Document document, org.apache.lucene.analysis.Analyzer analyzer)
          Adds a document to the index.
 IndexStatus getStatus()
           
 void setLogName(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAdder

public DefaultAdder(WriterConfiguration config,
                    DirectoryProvider provider)
Method Detail

getStatus

public IndexStatus getStatus()

setLogName

public void setLogName(java.lang.String name)

add

public void add(org.apache.lucene.document.Document document)
Description copied from interface: Adder
Adds a document to the index.

Specified by:
add in interface Adder
Parameters:
document - Document to add.

add

public void add(org.apache.lucene.document.Document document,
                org.apache.lucene.analysis.Analyzer analyzer)
Description copied from interface: Adder
Adds a document to the index.

Specified by:
add in interface Adder
Parameters:
document - Document to add.
analyzer - Analzer to use.


Copyright © 2009. All Rights Reserved.