Class AbstractAnalyzer

java.lang.Object
org.apache.cassandra.index.sasi.analyzer.AbstractAnalyzer
All Implemented Interfaces:
Iterator<ByteBuffer>
Direct Known Subclasses:
DelimiterAnalyzer, NonTokenizingAnalyzer, NoOpAnalyzer, StandardAnalyzer

public abstract class AbstractAnalyzer extends Object implements Iterator<ByteBuffer>
  • Field Details

  • Constructor Details

    • AbstractAnalyzer

      public AbstractAnalyzer()
  • Method Details

    • next

      public ByteBuffer next()
      Specified by:
      next in interface Iterator<ByteBuffer>
    • remove

      public void remove()
      Specified by:
      remove in interface Iterator<ByteBuffer>
    • validate

      public void validate(Map<String,String> options, ColumnMetadata cm) throws ConfigurationException
      Throws:
      ConfigurationException
    • init

      public abstract void init(Map<String,String> options, AbstractType<?> validator)
    • reset

      public abstract void reset(ByteBuffer input)
    • isCompatibleWith

      protected abstract boolean isCompatibleWith(AbstractType<?> validator)
      Test whether the given validator is compatible with the underlying analyzer.
      Parameters:
      validator - the validator to test the compatibility with
      Returns:
      true if the give validator is compatible, false otherwise
    • isTokenizing

      public boolean isTokenizing()
      Returns:
      true if current analyzer provides text tokenization, false otherwise.
    • normalize

      public static String normalize(String original)