mirror of https://github.com/apache/lucene.git
Changed from overriding next(Token) to next()
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@607246 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
da2a912919
commit
ac27fb02de
|
@ -43,16 +43,17 @@ public class SinkTokenizer extends Tokenizer {
|
|||
}
|
||||
|
||||
/**
|
||||
* Ignores the input result Token and returns the next token out of the list of cached tokens
|
||||
* @param result The input token
|
||||
* Returns the next token out of the list of cached tokens
|
||||
* @return The next {@link org.apache.lucene.analysis.Token} in the Sink.
|
||||
* @throws IOException
|
||||
*/
|
||||
public Token next(Token result) throws IOException {
|
||||
public Token next() throws IOException {
|
||||
if (iter == null) iter = lst.iterator();
|
||||
return iter.hasNext() ? (Token) iter.next() : null;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Override this method to cache only certain tokens, or new tokens based
|
||||
* on the old tokens.
|
||||
|
|
Loading…
Reference in New Issue