public class Filter extends AbstractFilter
Modifier and Type | Field and Description |
---|---|
static int |
BOOLEAN_OPERATOR_AND
The "AND" operator
|
static int |
BOOLEAN_OPERATOR_NOT
The "NOT" operator
|
static int |
BOOLEAN_OPERATOR_OR
The "OR" operator
|
logger
Constructor and Description |
---|
Filter() |
Filter(int operator)
Constructs a new filter with the specified operator
|
Modifier and Type | Method and Description |
---|---|
void |
add(FilterCriteria criteria)
Adds a criteria to the list.
|
java.util.BitSet |
bits(org.apache.lucene.index.IndexReader r)
Returns a list of documents which respect this filter.
|
void |
setUp(int operator)
Builds a filter of several criterion connected by an operator.
|
void |
toSAX(org.xml.sax.ContentHandler hdl)
Returns a SAX representation of this criteria.
|
enableLogging
public static final int BOOLEAN_OPERATOR_AND
public static final int BOOLEAN_OPERATOR_OR
public static final int BOOLEAN_OPERATOR_NOT
public Filter()
public Filter(int operator)
operator
- The operator for the filterpublic void setUp(int operator)
operator
- The operator (AND or OR) connecting the criterion .public void add(FilterCriteria criteria)
criteria
- A criteria or a list of criterionpublic java.util.BitSet bits(org.apache.lucene.index.IndexReader r)
bits
in interface FilterCriteria
bits
in class AbstractFilter
r
- An object for reading the index.public void toSAX(org.xml.sax.ContentHandler hdl) throws org.xml.sax.SAXException
hdl
- The ContentHandler to which the events will be supplied.org.xml.sax.SAXException
Copyright © 2000-2010 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.