|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.search.Filter
org.compass.core.lucene.util.ChainedFilter
public class ChainedFilter
Allows multiple
Filters 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.
| Nested Class Summary | |
|---|---|
static class |
ChainedFilter.ChainedFilterType
|
| Field Summary | |
|---|---|
static ChainedFilter.ChainedFilterType |
DEFAULT
Logical operation when none is declared. |
| Constructor Summary | |
|---|---|
ChainedFilter(Filter[] chain)
Ctor. |
|
ChainedFilter(Filter[] chain,
ChainedFilter.ChainedFilterType logic)
Ctor. |
|
ChainedFilter(Filter[] chain,
ChainedFilter.ChainedFilterType[] logicArray)
Ctor. |
|
| Method Summary | |
|---|---|
BitSet |
bits(IndexReader reader)
Filter.bits(org.apache.lucene.index.IndexReader). |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static ChainedFilter.ChainedFilterType DEFAULT
BitSet.or(java.util.BitSet).
| Constructor Detail |
|---|
public ChainedFilter(Filter[] chain)
chain - The chain of filters
public ChainedFilter(Filter[] chain,
ChainedFilter.ChainedFilterType[] logicArray)
chain - The chain of filterslogicArray - Logical operations to apply between filters
public ChainedFilter(Filter[] chain,
ChainedFilter.ChainedFilterType logic)
chain - The chain of filterslogic - Logicial operation to apply to ALL filters| Method Detail |
|---|
public BitSet bits(IndexReader reader)
throws IOException
Filter.bits(org.apache.lucene.index.IndexReader).
bits in class FilterIOExceptionpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||