lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r816786 - /lucene/solr/trunk/src/java/org/apache/solr/analysis/BufferedTokenStream.java
Date Fri, 18 Sep 2009 21:18:55 GMT
Author: yonik
Date: Fri Sep 18 21:18:54 2009
New Revision: 816786

URL: http://svn.apache.org/viewvc?rev=816786&view=rev
Log:
SOLR-1446: implement reset() for BufferedTokenStream

Modified:
    lucene/solr/trunk/src/java/org/apache/solr/analysis/BufferedTokenStream.java

Modified: lucene/solr/trunk/src/java/org/apache/solr/analysis/BufferedTokenStream.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/analysis/BufferedTokenStream.java?rev=816786&r1=816785&r2=816786&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/analysis/BufferedTokenStream.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/analysis/BufferedTokenStream.java Fri Sep 18
21:18:54 2009
@@ -19,6 +19,7 @@
 
 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 @@
  *
  * @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);
   }
 
   /**



Mime
View raw message