|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.util.list.ElementList
org.basex.data.FTMatches
public final class FTMatches
AllMatches full-text container, referencing several FTMatch
instances.
Field Summary | |
---|---|
FTMatch[] |
match
Full-text matches. |
int |
sTokenNum
Current number of tokens. |
Fields inherited from class org.basex.util.list.ElementList |
---|
factor, size |
Constructor Summary | |
---|---|
FTMatches(int s)
Constructor. |
Method Summary | |
---|---|
void |
add(FTMatch m)
Adds a match entry. |
void |
and(int s,
int e)
Adds a match entry. |
FTMatches |
copy()
Creates a deep copy of this container. |
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()
|
Methods inherited from class org.basex.util.list.ElementList |
---|
isEmpty, newSize, newSize, reset, size, size |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public FTMatch[] match
public int sTokenNum
Constructor Detail |
---|
public FTMatches(int s)
s
- sets the token numberMethod Detail |
---|
public 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 distance
public java.util.Iterator<FTMatch> iterator()
iterator
in interface java.lang.Iterable<FTMatch>
public FTMatches copy()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |