org.hibernate.search.indexes.serialization.impl
Class CopyTokenStream

java.lang.Object
  extended by org.apache.lucene.util.AttributeSource
      extended by org.apache.lucene.analysis.TokenStream
          extended by org.hibernate.search.indexes.serialization.impl.CopyTokenStream
All Implemented Interfaces:
Closeable, Serializable

public class CopyTokenStream
extends org.apache.lucene.analysis.TokenStream
implements Serializable

Copy all AttributeImpl for each incrementToken Inspired by org.apache.lucene.analysis.CachingTokenFilter Original file released under the ASL 2.0 license http://www.apache.org/licenses/LICENSE-2.0

Author:
Emmanuel Bernard
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.lucene.util.AttributeSource
org.apache.lucene.util.AttributeSource.AttributeFactory, org.apache.lucene.util.AttributeSource.State
 
Constructor Summary
CopyTokenStream(List<List<org.apache.lucene.util.AttributeImpl>> stream)
           
 
Method Summary
static SerializableTokenStream buildSerializabletokenStream(org.apache.lucene.analysis.TokenStream tokenStream)
           
 void end()
           
 boolean incrementToken()
           
 void reset()
           
 
Methods inherited from class org.apache.lucene.analysis.TokenStream
close
 
Methods inherited from class org.apache.lucene.util.AttributeSource
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CopyTokenStream

public CopyTokenStream(List<List<org.apache.lucene.util.AttributeImpl>> stream)
Method Detail

buildSerializabletokenStream

public static SerializableTokenStream buildSerializabletokenStream(org.apache.lucene.analysis.TokenStream tokenStream)

incrementToken

public final boolean incrementToken()
                             throws IOException
Specified by:
incrementToken in class org.apache.lucene.analysis.TokenStream
Throws:
IOException

end

public final void end()
               throws IOException
Overrides:
end in class org.apache.lucene.analysis.TokenStream
Throws:
IOException

reset

public void reset()
           throws IOException
Overrides:
reset in class org.apache.lucene.analysis.TokenStream
Throws:
IOException


Copyright © 2006-2012 Red Hat Middleware, LLC. All Rights Reserved