| Modifier and Type | Field and Description |
|---|---|
FTMatch[] |
match
Full-text matches.
|
int |
size
Number of entries.
|
int |
sTokenNum
Current number of tokens.
|
| Constructor and Description |
|---|
FTMatches(int s)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
java.util.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(int s)
Resets the match counter.
|
java.lang.String |
toString() |
public FTMatch[] match
public int size
public int sTokenNum
public FTMatches(int s)
s - sets the token numberpublic void reset(int s)
s - sets the token numberpublic void or(int p)
p - positionpublic void or(int s,
int e)
s - start positione - end positionpublic 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 distancepublic java.util.Iterator<FTMatch> iterator()
iterator in interface java.lang.Iterable<FTMatch>public java.lang.String toString()
toString in class java.lang.Object