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, AutoCloseable

      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

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from class org.apache.lucene.util.AttributeSource

      `AttributeSource.State`

  - ### Field Summary

    - ### Fields inherited from class org.apache.lucene.analysis.TokenStream

      `DEFAULT_TOKEN_ATTRIBUTE_FACTORY`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `CopyTokenStream(List<List<AttributeImpl>> stream)`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static SerializableTokenStream` | `buildSerializableTokenStream(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, endAttributes, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, removeAllAttributes, restoreState, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### CopyTokenStream

          public CopyTokenStream(List<List<AttributeImpl>> stream)

  - ### Method Detail

    - #### 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-2017 Red Hat, Inc. All Rights Reserved