Class ValidatingTokenFilter

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

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

    • 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).
  • Method Details