Class DelimiterAnalyzer

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

    @Beta
    public class DelimiterAnalyzer
    extends AbstractAnalyzer
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()  
      void init​(java.util.Map<java.lang.String,​java.lang.String> options, AbstractType<?> validator)  
      boolean isCompatibleWith​(AbstractType<?> validator)
      Test whether the given validator is compatible with the underlying analyzer.
      boolean isTokenizing()  
      java.nio.ByteBuffer next()  
      void reset​(java.nio.ByteBuffer input)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining
    • Constructor Detail

      • DelimiterAnalyzer

        public DelimiterAnalyzer()
    • Method Detail

      • next

        public java.nio.ByteBuffer next()
        Specified by:
        next in interface java.util.Iterator<java.nio.ByteBuffer>
        Overrides:
        next in class AbstractAnalyzer
      • 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
      • 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