org.apache.lucene.analysis.util

## Class FilteringTokenFilter

- java.lang.Object
- - org.apache.lucene.util.AttributeSource
  - - org.apache.lucene.analysis.TokenStream
    - - org.apache.lucene.analysis.TokenFilter
      - - org.apache.lucene.analysis.FilteringTokenFilter
        - - org.apache.lucene.analysis.util.FilteringTokenFilter

- All Implemented Interfaces:
    Closeable, AutoCloseable

  Deprecated.
  This class moved to Lucene-Core module: `FilteringTokenFilter`

      @Deprecated
      public abstract class FilteringTokenFilter
      extends FilteringTokenFilter

  Abstract base class for TokenFilters that may remove tokens. You have to implement `FilteringTokenFilter.accept()` and return a boolean if the current token should be preserved. `FilteringTokenFilter.incrementToken()` uses this method to decide if a token should be passed to the caller.

- - ### 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.TokenFilter

      `input`

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

      `DEFAULT_TOKEN_ATTRIBUTE_FACTORY`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `FilteringTokenFilter(TokenStream in)` Deprecated. Create a new `FilteringTokenFilter`.

  - ### Method Summary

    - ### Methods inherited from class org.apache.lucene.analysis.FilteringTokenFilter

      `accept, end, incrementToken, reset`

    - ### Methods inherited from class org.apache.lucene.analysis.TokenFilter

      `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

    - #### FilteringTokenFilter

          public FilteringTokenFilter(TokenStream in)

      Deprecated.
      Create a new `FilteringTokenFilter`.
      Parameters:
        `in` - the `TokenStream` to consume

Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.