Class DelimiterAnalyzer
- java.lang.Object
-
- org.apache.cassandra.index.sasi.analyzer.AbstractAnalyzer
-
- org.apache.cassandra.index.sasi.analyzer.DelimiterAnalyzer
-
- All Implemented Interfaces:
java.util.Iterator<java.nio.ByteBuffer>
@Beta public class DelimiterAnalyzer extends AbstractAnalyzer
-
-
Field Summary
-
Fields inherited from class org.apache.cassandra.index.sasi.analyzer.AbstractAnalyzer
next
-
-
Constructor Summary
Constructors Constructor Description DelimiterAnalyzer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()voidinit(java.util.Map<java.lang.String,java.lang.String> options, AbstractType<?> validator)booleanisCompatibleWith(AbstractType<?> validator)Test whether the given validator is compatible with the underlying analyzer.booleanisTokenizing()java.nio.ByteBuffernext()voidreset(java.nio.ByteBuffer input)-
Methods inherited from class org.apache.cassandra.index.sasi.analyzer.AbstractAnalyzer
normalize, remove, validate
-
-
-
-
Method Detail
-
next
public java.nio.ByteBuffer next()
- Specified by:
nextin interfacejava.util.Iterator<java.nio.ByteBuffer>- Overrides:
nextin classAbstractAnalyzer
-
init
public void init(java.util.Map<java.lang.String,java.lang.String> options, AbstractType<?> validator)- Specified by:
initin classAbstractAnalyzer
-
hasNext
public boolean hasNext()
-
reset
public void reset(java.nio.ByteBuffer input)
- Specified by:
resetin classAbstractAnalyzer
-
isTokenizing
public boolean isTokenizing()
- Overrides:
isTokenizingin classAbstractAnalyzer- Returns:
- true if current analyzer provides text tokenization, false otherwise.
-
isCompatibleWith
public boolean isCompatibleWith(AbstractType<?> validator)
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
-
-