Class AbstractAnalyzer
java.lang.Object
org.apache.cassandra.index.sai.analyzer.AbstractAnalyzer
- All Implemented Interfaces:
Iterator<ByteBuffer>
- Direct Known Subclasses:
NonTokenizingAnalyzer
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidend()Call when tokenization is finished.fromOptions(IndexTermType indexTermType, Map<String, String> options) getAnalyzerOptions(Map<String, String> options) next()Note: This method does not advance, as we rely onIterator.hasNext()to buffer the next value.voidremove()voidreset(ByteBuffer input) protected abstract voidresetInternal(ByteBuffer input) abstract booleanMethods 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
-
nextLiteral
-
-
Constructor Details
-
AbstractAnalyzer
public AbstractAnalyzer()
-
-
Method Details
-
transformValue
public abstract boolean transformValue()- Returns:
- true if index value is transformed, e.g. normalized or lower-cased or tokenized.
-
end
public void end()Call when tokenization is finished. Used by the LuceneAnalyzer. -
next
Note: This method does not advance, as we rely onIterator.hasNext()to buffer the next value.- Specified by:
nextin interfaceIterator<ByteBuffer>- Returns:
- the raw value currently buffered by this iterator
-
remove
public void remove()- Specified by:
removein interfaceIterator<ByteBuffer>
-
resetInternal
-
reset
-
fromOptions
public static AbstractAnalyzer.AnalyzerFactory fromOptions(IndexTermType indexTermType, Map<String, String> options) -
getAnalyzerOptions
-