public final class FTBitapSearch extends 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 iter,
FTTokens tokens,
FTBitapSearch.TokenComparator cmp)
Constructor.
|
public FTBitapSearch(FTIterator iter, FTTokens tokens, FTBitapSearch.TokenComparator cmp)
iter
- iterator over the set of elements being searched ("haystack")tokens
- a list of "needles" (a needle is an array of elements being searched for)cmp
- 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 searchCopyright © 2005–2015 BaseX Team. All rights reserved.