public abstract class Stemmer extends FTIterator
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(org.basex.util.ft.LanguageImpl o) |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
boolean |
hasNext() |
Stemmer |
init(byte[] txt)
Initializes the iterator.
|
FTSpan |
next() |
byte[] |
nextToken()
Returns the next token.
|
protected abstract byte |
prec()
Returns the precedence of the processor.
|
protected abstract byte[] |
stem(byte[] word)
Stems a word.
|
static boolean |
supportFor(Language l)
Checks if the language is supported by the available stemmers.
|
boolean |
supports(Language ln)
Checks if the specified language is supported.
|
java.lang.String |
toString() |
removepublic static boolean supportFor(Language l)
l - language to be foundprotected abstract byte[] stem(byte[] word)
word - input word to stempublic final Stemmer init(byte[] txt)
FTIteratorinit in class FTIteratortxt - textpublic final boolean hasNext()
public final FTSpan next()
public final byte[] nextToken()
FTIteratorIterator.next()
to avoid the creation of new FTSpan instances.nextToken in class FTIteratorpublic java.lang.String toString()
toString in class java.lang.Objectprotected abstract byte prec()
public boolean supports(Language ln)
ln - languagepublic final boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic final int compareTo(org.basex.util.ft.LanguageImpl o)
compareTo in interface java.lang.Comparable<org.basex.util.ft.LanguageImpl>public int hashCode()
hashCode in class java.lang.Object