|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.basex.data.FTMatches
public final class FTMatches
AllMatches full-text container,
referencing several FTMatch instances.
| Field Summary | |
|---|---|
FTMatch[] |
match
Full-text matches. |
int |
size
Number of entries. |
byte |
sTokenNum
Current number of tokens. |
| Constructor Summary | |
|---|---|
FTMatches(byte s)
Constructor. |
|
| Method Summary | |
|---|---|
void |
add(FTMatch m)
Adds a match entry. |
void |
and(int s,
int e)
Adds a match entry. |
void |
delete(int i)
Removes the specified match. |
Iterator<FTMatch> |
iterator()
|
boolean |
matches()
Checks if at least one of the matches contains only includes. |
void |
or(int p)
Adds a match entry. |
void |
or(int s,
int e)
Adds a match entry. |
boolean |
phrase(FTMatches all,
int dis)
Combines two matches as phrase. |
void |
reset(byte s)
Resets the match counter. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public FTMatch[] match
public int size
public byte sTokenNum
| Constructor Detail |
|---|
public FTMatches(byte s)
s - sets the token number| Method Detail |
|---|
public void reset(byte s)
s - sets the token numberpublic void or(int p)
p - position
public void or(int s,
int e)
s - start positione - end position
public void and(int s,
int e)
s - start positione - end positionpublic void add(FTMatch m)
m - match to be addedpublic void delete(int i)
i - match offsetpublic boolean matches()
public boolean phrase(FTMatches all,
int dis)
all - second match listdis - word distance
public Iterator<FTMatch> iterator()
iterator in interface Iterable<FTMatch>public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||