Modifier and Type | Field and Description |
---|---|
FTMatch[] |
match
Full-text matches.
|
int |
pos
Position of a token in the query.
|
size
Constructor and Description |
---|
FTMatches()
Constructor.
|
FTMatches(int pos)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(FTMatch ftm)
Adds a match entry.
|
void |
and(int start,
int end)
Adds a match entry.
|
void |
delete(int index)
Removes the specified match.
|
Iterator<FTMatch> |
iterator() |
boolean |
matches()
Checks if at least one of the matches contains only includes.
|
void |
or(int ps)
Adds a match entry.
|
void |
or(int start,
int end)
Adds a match entry.
|
boolean |
phrase(FTMatches all,
int distance)
Combines two matches as phrase.
|
void |
reset(int ps)
Resets the match container.
|
String |
toString() |
public FTMatch[] match
public int pos
public FTMatches()
public FTMatches(int pos)
pos
- query positionpublic void reset(int ps)
ps
- query positionpublic void or(int ps)
ps
- positionpublic void or(int start, int end)
start
- start positionend
- end positionpublic void and(int start, int end)
start
- start positionend
- end positionpublic void add(FTMatch ftm)
ftm
- match to be addedpublic void delete(int index)
index
- match indexpublic boolean matches()
public boolean phrase(FTMatches all, int distance)
all
- second match listdistance
- word distanceCopyright © 2005–2015 BaseX Team. All rights reserved.