Class SingleTokenTokenStream

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public final class SingleTokenTokenStream
    extends org.apache.lucene.analysis.TokenStream
    A TokenStream containing a single token.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.lucene.util.AttributeSource

        org.apache.lucene.util.AttributeSource.AttributeFactory, org.apache.lucene.util.AttributeSource.State
    • Constructor Summary

      Constructors 
      Constructor Description
      SingleTokenTokenStream​(org.apache.lucene.analysis.Token token)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.lucene.analysis.Token getToken()  
      boolean incrementToken()  
      void reset()  
      void setToken​(org.apache.lucene.analysis.Token token)  
      • Methods inherited from class org.apache.lucene.analysis.TokenStream

        close, end
      • Methods inherited from class org.apache.lucene.util.AttributeSource

        addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState, toString
    • Constructor Detail

      • SingleTokenTokenStream

        public SingleTokenTokenStream​(org.apache.lucene.analysis.Token token)
    • Method Detail

      • incrementToken

        public final boolean incrementToken()
                                     throws IOException
        Specified by:
        incrementToken in class org.apache.lucene.analysis.TokenStream
        Throws:
        IOException
      • reset

        public void reset()
                   throws IOException
        Overrides:
        reset in class org.apache.lucene.analysis.TokenStream
        Throws:
        IOException
      • getToken

        public org.apache.lucene.analysis.Token getToken()
      • setToken

        public void setToken​(org.apache.lucene.analysis.Token token)