Class Analyzer.TokenStreamComponents

java.lang.Object
org.apache.lucene.analysis.Analyzer.TokenStreamComponents
Enclosing class:
Analyzer

public static final class Analyzer.TokenStreamComponents extends Object
This class encapsulates the outer components of a token stream. It provides access to the source (a Reader Consumer and the outer end (sink), an instance of TokenFilter which also serves as the TokenStream returned by Analyzer.tokenStream(String, Reader).
  • Field Details

    • source

      protected final Consumer<Reader> source
      Original source of the tokens.
    • sink

      protected final TokenStream sink
      Sink tokenstream, such as the outer tokenfilter decorating the chain. This can be the source if there are no filters.
  • Constructor Details

  • Method Details