Class Predicates.RegExSplitterByDot
- java.lang.Object
-
- org.apache.flink.cdc.common.utils.Predicates.RegExSplitterByDot
-
- All Implemented Interfaces:
TokenStream.Tokenizer
- Enclosing class:
- Predicates
public static class Predicates.RegExSplitterByDot extends Object implements TokenStream.Tokenizer
A tokenization class used to split a dot-separated list of regular expressions. If a comma is part of expression then it can be prepended with'\'so it will not act as a separator.
-
-
Constructor Summary
Constructors Constructor Description RegExSplitterByDot()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String[]split(String identifier)voidtokenize(TokenStream.CharacterStream input, TokenStream.Tokens tokens)Process the supplied characters and construct the appropriateTokenStream.Tokenobjects.
-
-
-
Method Detail
-
tokenize
public void tokenize(TokenStream.CharacterStream input, TokenStream.Tokens tokens) throws ParsingException
Description copied from interface:TokenStream.TokenizerProcess the supplied characters and construct the appropriateTokenStream.Tokenobjects.- Specified by:
tokenizein interfaceTokenStream.Tokenizer- Parameters:
input- the character input stream; never nulltokens- the factory forTokenStream.Tokenobjects, which records the order in which the tokens are created- Throws:
ParsingException- if there is an error while processing the character stream (e.g., a quote is not closed, etc.)
-
-