org.hibernate.search.indexes.serialization.impl
Class CopyTokenStream
java.lang.Object
org.apache.lucene.util.AttributeSource
org.apache.lucene.analysis.TokenStream
org.hibernate.search.indexes.serialization.impl.CopyTokenStream
- All Implemented Interfaces:
- Closeable, Serializable
public class CopyTokenStream
- extends 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
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 |
CopyTokenStream
public CopyTokenStream(List<List<AttributeImpl>> stream)
buildSerializabletokenStream
public static SerializableTokenStream buildSerializabletokenStream(TokenStream tokenStream)
incrementToken
public final boolean incrementToken()
throws IOException
- Specified by:
incrementToken
in class TokenStream
- Throws:
IOException
end
public final void end()
throws IOException
- Overrides:
end
in class TokenStream
- Throws:
IOException
reset
public void reset()
throws IOException
- Overrides:
reset
in class TokenStream
- Throws:
IOException
Copyright © 2006-2013 Red Hat Middleware, LLC. All Rights Reserved