Class StandardAnalyzer

  • All Implemented Interfaces:
    java.util.Iterator<java.nio.ByteBuffer>

    public class StandardAnalyzer
    extends AbstractAnalyzer
    • Field Detail

      • inputReader

        protected java.io.Reader inputReader
    • Constructor Detail

      • StandardAnalyzer

        public StandardAnalyzer()
    • Method Detail

      • getToken

        public java.lang.String getToken()
      • incrementToken

        public final boolean incrementToken()
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • getFilteredCurrentToken

        protected java.lang.String getFilteredCurrentToken()
                                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • init

        public void init​(java.util.Map<java.lang.String,​java.lang.String> options,
                         AbstractType<?> validator)
        Specified by:
        init in class AbstractAnalyzer
      • hasNext

        public boolean hasNext()
      • reset

        public void reset​(java.nio.ByteBuffer input)
        Specified by:
        reset in class AbstractAnalyzer
      • reset

        public void reset​(java.io.InputStream input)
      • isTokenizing

        public boolean isTokenizing()
        Overrides:
        isTokenizing in class AbstractAnalyzer
        Returns:
        true if current analyzer provides text tokenization, false otherwise.
      • isCompatibleWith

        public boolean isCompatibleWith​(AbstractType<?> validator)
        Description copied from class: AbstractAnalyzer
        Test whether the given validator is compatible with the underlying analyzer.
        Specified by:
        isCompatibleWith in class AbstractAnalyzer
        Parameters:
        validator - the validator to test the compatibility with
        Returns:
        true if the give validator is compatible, false otherwise