fr.gouv.culture.sdx.search.lucene.filter
Class AbstractFilter

java.lang.Object
  extended byorg.apache.lucene.search.Filter
      extended byfr.gouv.culture.sdx.search.lucene.filter.AbstractFilter
All Implemented Interfaces:
FilterCriteria, org.apache.avalon.framework.logger.LogEnabled, java.io.Serializable, org.apache.cocoon.xml.XMLizable
Direct Known Subclasses:
Criteria, Filter

public abstract class AbstractFilter
extends org.apache.lucene.search.Filter
implements FilterCriteria, org.apache.avalon.framework.logger.LogEnabled

Basic implementation for a SDX Filter. Abstract class necessary to facilitate a correct interface with the Lucene API

See Also:
Serialized Form

Field Summary
protected  org.apache.avalon.framework.logger.Logger logger
          Avalon logger to write information.
 
Constructor Summary
AbstractFilter()
           
 
Method Summary
abstract  java.util.BitSet bits(org.apache.lucene.index.IndexReader r)
          Applies the criteria and turns over the documents which satisfy it
 void enableLogging(org.apache.avalon.framework.logger.Logger logger)
          Set's the logger
abstract  void toSAX(org.xml.sax.ContentHandler hdl)
          Returns a SAX representation of this filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected org.apache.avalon.framework.logger.Logger logger
Avalon logger to write information.

Constructor Detail

AbstractFilter

public AbstractFilter()
Method Detail

bits

public abstract java.util.BitSet bits(org.apache.lucene.index.IndexReader r)
Description copied from interface: FilterCriteria
Applies the criteria and turns over the documents which satisfy it

Specified by:
bits in interface FilterCriteria

toSAX

public abstract void toSAX(org.xml.sax.ContentHandler hdl)
                    throws org.xml.sax.SAXException,
                           org.apache.cocoon.ProcessingException
Returns a SAX representation of this filter.

Specified by:
toSAX in interface FilterCriteria
Parameters:
hdl - The ContentHandler to which the events will be supplied.
Throws:
org.xml.sax.SAXException
org.apache.cocoon.ProcessingException

enableLogging

public void enableLogging(org.apache.avalon.framework.logger.Logger logger)
Set's the logger

Specified by:
enableLogging in interface org.apache.avalon.framework.logger.LogEnabled
Parameters:
logger - The logger to use.


Copyright © 2000-2004 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.