Class AbstractAnalyzer
java.lang.Object
org.apache.cassandra.index.sasi.analyzer.AbstractAnalyzer
- All Implemented Interfaces:
Iterator<ByteBuffer>
- Direct Known Subclasses:
DelimiterAnalyzer,NonTokenizingAnalyzer,NoOpAnalyzer,StandardAnalyzer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidinit(Map<String, String> options, AbstractType<?> validator) protected abstract booleanisCompatibleWith(AbstractType<?> validator) Test whether the given validator is compatible with the underlying analyzer.booleannext()static Stringvoidremove()abstract voidreset(ByteBuffer input) voidvalidate(Map<String, String> options, ColumnMetadata cm) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining, hasNext
-
Field Details
-
next
-
-
Constructor Details
-
AbstractAnalyzer
public AbstractAnalyzer()
-
-
Method Details
-
next
- Specified by:
nextin interfaceIterator<ByteBuffer>
-
remove
public void remove()- Specified by:
removein interfaceIterator<ByteBuffer>
-
validate
- Throws:
ConfigurationException
-
init
-
reset
-
isCompatibleWith
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
-