|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.basex.index.IndexArrayIterator
public class IndexArrayIterator
This interface provides methods for returning index results.
| Field Summary | |
|---|---|
static IndexArrayIterator |
EMP
Empty iterator. |
| Fields inherited from interface org.basex.index.IndexIterator |
|---|
EMPTY |
| Constructor Summary | |
|---|---|
IndexArrayIterator(int s)
Constructor. |
|
IndexArrayIterator(int[][] res,
boolean c)
Constructor. |
|
| Method Summary | |
|---|---|
static IndexArrayIterator |
and(IndexArrayIterator iai1,
IndexArrayIterator iai2,
int w)
Merges two index array iterators. |
static IndexArrayIterator |
merge(IndexArrayIterator iai1,
IndexArrayIterator iai2)
Merges two index array iterators. |
boolean |
more()
Checks if more results are available. |
int |
next()
Returns the next result. |
FTNode |
nextFTNode()
Returns the next FTNode. |
void |
setToken(FTTokenizer[] token)
Sets the tokenizer. |
void |
setTokenNum(int tn)
Sets the unique token number. |
int |
size()
Returns the number of index results. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final IndexArrayIterator EMP
| Constructor Detail |
|---|
public IndexArrayIterator(int s)
s - size
public IndexArrayIterator(int[][] res,
boolean c)
res - pre arrayc - Flag for data converting| Method Detail |
|---|
public boolean more()
public FTNode nextFTNode()
public int next()
IndexIterator
next in interface IndexIteratorpublic int size()
IndexIterator
size in interface IndexIteratorpublic void setTokenNum(int tn)
tn - number of tokenspublic void setToken(FTTokenizer[] token)
token - FTTokenizer
public static IndexArrayIterator merge(IndexArrayIterator iai1,
IndexArrayIterator iai2)
iai1 - first index array iterator to mergeiai2 - second index array iterator to merge
public static IndexArrayIterator and(IndexArrayIterator iai1,
IndexArrayIterator iai2,
int w)
iai1 - first index array iterator to mergeiai2 - second index array iterator to mergew - distance between two pos values
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||