mirror of https://github.com/apache/lucene.git
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:
parent
5bdcb0a963
commit
745fad657d
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue