|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.index.IndexIterator
org.basex.index.IndexArrayIterator
public class IndexArrayIterator
This interface provides methods for returning index results.
Field Summary | |
---|---|
static IndexArrayIterator |
EMP
Empty iterator. |
Fields inherited from class org.basex.index.IndexIterator |
---|
EMPTY |
Constructor Summary | |
---|---|
IndexArrayIterator(int s)
Constructor. |
|
IndexArrayIterator(int[][] res,
boolean c)
Constructor. |
|
IndexArrayIterator(int[][] res,
int s,
boolean c)
Constructor. |
|
IndexArrayIterator(int[] res,
int s)
Constructor. |
Method Summary | |
---|---|
int[][] |
getFTData()
Get all FTData from index. |
static IndexArrayIterator |
merge(IndexArrayIterator iai1,
IndexArrayIterator iai2)
Merge to indexarrayiterator. |
boolean |
more()
Checks if more results are available. |
int |
next()
Returns the next result. |
FTNode |
nextFTNode()
Get next FTNode. |
FTNode |
nextFTNodeFD()
Returns the next result as FTNode object. |
void |
setToken(FTTokenizer[] token)
Set FTTokinzer. |
void |
setTokenNum(int tn)
Each token in the query has a 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
- sizepublic IndexArrayIterator(int[] res, int s)
res
- pres arrays
- number of resultspublic IndexArrayIterator(int[][] res, boolean c)
res
- pres arrayc
- Flag for data convertingpublic IndexArrayIterator(int[][] res, int s, boolean c)
res
- pres arrays
- sizec
- Flag for data convertingMethod Detail |
---|
public boolean more()
IndexIterator
more
in class IndexIterator
public int next()
IndexIterator
next
in class IndexIterator
public FTNode nextFTNodeFD()
IndexIterator
nextFTNodeFD
in class IndexIterator
public FTNode nextFTNode()
public int size()
IndexIterator
size
in class IndexIterator
public void setTokenNum(int tn)
tn
- number of tokenspublic void setToken(FTTokenizer[] token)
token
- FTTokenizerpublic int[][] getFTData()
public static IndexArrayIterator merge(IndexArrayIterator iai1, IndexArrayIterator iai2)
iai1
- first indexarrayiterator to mergeiai2
- second indexarrayiterator to merge
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |