Class DropIfFlaggedFilter

All Implemented Interfaces:
Closeable, AutoCloseable, Unwrappable<TokenStream>

public final class DropIfFlaggedFilter extends FilteringTokenFilter
Allows Tokens with a given combination of flags to be dropped. If all flags specified are present the token is dropped, otherwise it is retained.
See Also:
  • Constructor Details

    • DropIfFlaggedFilter

      public DropIfFlaggedFilter(TokenStream input, int dropFlags)
      Construct a token stream filtering the given input.
      input - the source stream
      dropFlags - a combination of flags that indicates that the token should be dropped.
  • Method Details