fr.gouv.culture.sdx.search.lucene.filter
Interface FilterCriteria

All Superinterfaces:
org.apache.cocoon.xml.XMLizable
All Known Implementing Classes:
AbstractFilter

public interface FilterCriteria
extends org.apache.cocoon.xml.XMLizable

Interface for the classes which define filters. Primarily, this interface defines a method making it possible to turn over BitSet of the documents admitted according to this criteria.


Method Summary
 java.util.BitSet bits(org.apache.lucene.index.IndexReader r)
          Applies the criteria and turns over the documents which satisfy it
 void toSAX(org.xml.sax.ContentHandler hdl)
          Returns a SAX representation of this criteria.
 

Method Detail

bits

public java.util.BitSet bits(org.apache.lucene.index.IndexReader r)
Applies the criteria and turns over the documents which satisfy it

Parameters:
r - The reader of the index.

toSAX

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

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


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