Class ValidatingTokenFilter

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public final class ValidatingTokenFilter
    extends TokenFilter
    A TokenFilter that checks consistency of the tokens (eg offsets are consistent with one another).
    • Constructor Detail

      • ValidatingTokenFilter

        public ValidatingTokenFilter​(TokenStream in,
                                     String name)
        The name arg is used to identify this stage when throwing exceptions (useful if you have more than one instance in your chain).