Class DropIfFlaggedFilter

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.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.
    Since:
    8.8.0
    See Also:
    DropIfFlaggedFilterFactory
    • Field Detail

      • dropFlags

        private final int dropFlags
    • Constructor Detail

      • DropIfFlaggedFilter

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