SOLR-1446: implement reset() for BufferedTokenStream

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@816786 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2009-09-18 21:18:54 +00:00
parent 5bdcb0a963
commit 745fad657d
1 changed files with 3 additions and 3 deletions

View File

@ -19,6 +19,7 @@ package org.apache.solr.analysis;
import org.apache.lucene.analysis.Token;
import org.apache.lucene.analysis.TokenStream;
import org.apache.lucene.analysis.TokenFilter;
import java.io.IOException;
import java.util.LinkedList;
@ -54,14 +55,13 @@ import java.util.LinkedList;
*
* @version $Id$
*/
public abstract class BufferedTokenStream extends TokenStream {
public abstract class BufferedTokenStream extends TokenFilter {
// in the future, might be faster if we implemented as an array based CircularQueue
private final LinkedList<Token> inQueue = new LinkedList<Token>();
private final LinkedList<Token> outQueue = new LinkedList<Token>();
private final TokenStream input;
public BufferedTokenStream(TokenStream input) {
this.input = input;
super(input);
}
/**