Class StandardAnalyzer
java.lang.Object
org.apache.cassandra.index.sasi.analyzer.AbstractAnalyzer
org.apache.cassandra.index.sasi.analyzer.StandardAnalyzer
- All Implemented Interfaces:
Iterator<ByteBuffer>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class org.apache.cassandra.index.sasi.analyzer.AbstractAnalyzer
next -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetToken()booleanhasNext()final booleanvoidinit(Map<String, String> options, AbstractType<?> validator) protected voidinit(StandardTokenizerOptions options) voidinit(StandardTokenizerOptions tokenizerOptions, AbstractType<?> validator) booleanisCompatibleWith(AbstractType<?> validator) Test whether the given validator is compatible with the underlying analyzer.booleanvoidreset(InputStream input) voidreset(ByteBuffer input) Methods inherited from class org.apache.cassandra.index.sasi.analyzer.AbstractAnalyzer
next, normalize, remove, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
inputReader
-
-
Constructor Details
-
StandardAnalyzer
public StandardAnalyzer()
-
-
Method Details
-
getToken
-
incrementToken
- Throws:
IOException
-
getFilteredCurrentToken
- Throws:
IOException
-
init
- Specified by:
initin classAbstractAnalyzer
-
init
-
init
-
hasNext
public boolean hasNext() -
reset
- Specified by:
resetin classAbstractAnalyzer
-
reset
-
isTokenizing
public boolean isTokenizing()- Overrides:
isTokenizingin classAbstractAnalyzer- Returns:
- true if current analyzer provides text tokenization, false otherwise.
-
isCompatibleWith
Description copied from class:AbstractAnalyzerTest whether the given validator is compatible with the underlying analyzer.- Specified by:
isCompatibleWithin classAbstractAnalyzer- Parameters:
validator- the validator to test the compatibility with- Returns:
- true if the give validator is compatible, false otherwise
-