Class NonTokenizingAnalyzer
- java.lang.Object
-
- org.apache.cassandra.index.sasi.analyzer.AbstractAnalyzer
-
- org.apache.cassandra.index.sasi.analyzer.NonTokenizingAnalyzer
-
- All Implemented Interfaces:
java.util.Iterator<java.nio.ByteBuffer>
public class NonTokenizingAnalyzer extends AbstractAnalyzer
Analyzer that does *not* tokenize the input. Optionally will apply filters for the input output as defined in analyzers options
-
-
Field Summary
-
Fields inherited from class org.apache.cassandra.index.sasi.analyzer.AbstractAnalyzer
next
-
-
Constructor Summary
Constructors Constructor Description NonTokenizingAnalyzer()
-
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)
void
init(NonTokenizingOptions tokenizerOptions, AbstractType<?> validator)
boolean
isCompatibleWith(AbstractType<?> validator)
Test whether the given validator is compatible with the underlying analyzer.void
reset(java.nio.ByteBuffer input)
void
validate(java.util.Map<java.lang.String,java.lang.String> options, ColumnMetadata cm)
-
Methods inherited from class org.apache.cassandra.index.sasi.analyzer.AbstractAnalyzer
isTokenizing, next, normalize, remove
-
-
-
-
Method Detail
-
validate
public void validate(java.util.Map<java.lang.String,java.lang.String> options, ColumnMetadata cm) throws ConfigurationException
- Overrides:
validate
in classAbstractAnalyzer
- Throws:
ConfigurationException
-
init
public void init(java.util.Map<java.lang.String,java.lang.String> options, AbstractType<?> validator)
- Specified by:
init
in classAbstractAnalyzer
-
init
public void init(NonTokenizingOptions tokenizerOptions, AbstractType<?> validator)
-
hasNext
public boolean hasNext()
-
reset
public void reset(java.nio.ByteBuffer input)
- Specified by:
reset
in classAbstractAnalyzer
-
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 classAbstractAnalyzer
- Parameters:
validator
- the validator to test the compatibility with- Returns:
- true if the give validator is compatible, false otherwise
-
-