org.apache.lucene.misc
Class ChainedFilter
- Serializable
public class ChainedFilter
Allows multiple
Filter
s to be chained.
Logical operations such as
NOT and
XOR
are applied between filters. One operation can be used
for all filters, or a specific operation can be declared
for each filter.
Order in which filters are called depends on
the position of the filter in the chain. It's probably
more efficient to place the most restrictive filters
/least computationally-intensive filters first.
static int | AND BitSet.and .
|
static int | ANDNOT BitSet.andNot .
|
static int | DEFAULT - Logical operation when none is declared.
|
static int | OR BitSet.or .
|
static int | XOR BitSet.xor .
|
AND
public static final int AND
BitSet.and
.
ANDNOT
public static final int ANDNOT
BitSet.andNot
.
DEFAULT
public static int DEFAULT
Logical operation when none is declared. Defaults to
BitSet.or
.
OR
public static final int OR
BitSet.or
.
XOR
public static final int XOR
BitSet.xor
.
ChainedFilter
public ChainedFilter(Filter[] chain)
Ctor.
chain
- The chain of filters
ChainedFilter
public ChainedFilter(Filter[] chain,
int logic)
Ctor.
chain
- The chain of filterslogic
- Logicial operation to apply to ALL filters
ChainedFilter
public ChainedFilter(Filter[] chain,
int[] logicArray)
Ctor.
chain
- The chain of filterslogicArray
- Logical operations to apply between filters
toString
public String toString()
Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.