public final class FTBitapSearch
extends java.lang.Object
BitSet for fast bit operation. This version works with a set of
needles and each one of it can be matched in the haystack.| Modifier and Type | Class and Description |
|---|---|
static interface |
FTBitapSearch.TokenComparator
Token comparator.
|
| Constructor and Description |
|---|
FTBitapSearch(FTIterator h,
FTTokens n,
FTBitapSearch.TokenComparator c)
Constructor.
|
public FTBitapSearch(FTIterator h, FTTokens n, FTBitapSearch.TokenComparator c)
h - iterator over the set of elements being searched ("haystack")n - a list of "needles" (a needle is an array of elements being
searched for)c - comparator for comparing two elements for equalitypublic boolean hasNext()
throws QueryException
true if yesQueryException - if an error occurs during searchpublic int next()
throws QueryException
QueryException - if an error occurs during search