org.apache.flink.util.StringValueUtils.WhitespaceTokenizer Java Examples
The following examples show how to use
org.apache.flink.util.StringValueUtils.WhitespaceTokenizer.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: StringValueUtilsTest.java From Flink-CEPplus with Apache License 2.0 | 5 votes |
@Test public void testTokenizerOnStringWithoutNexToken() { StringValue testString = new StringValue("test"); StringValueUtils.WhitespaceTokenizer tokenizer = new WhitespaceTokenizer(); tokenizer.setStringToTokenize(testString); //first token tokenizer.next(testString); //next token is not exist assertFalse(tokenizer.next(testString)); }
Example #2
Source File: StringValueUtilsTest.java From Flink-CEPplus with Apache License 2.0 | 5 votes |
@Test public void testTokenizerOnStringWithNexToken() { StringValue testString = new StringValue("test test"); StringValueUtils.WhitespaceTokenizer tokenizer = new WhitespaceTokenizer(); tokenizer.setStringToTokenize(testString); assertTrue(tokenizer.next(testString)); }
Example #3
Source File: StringValueUtilsTest.java From Flink-CEPplus with Apache License 2.0 | 5 votes |
@Test public void testTokenizerOnStringOnlyWithDelimiter() { StringValue testString = new StringValue(" "); StringValueUtils.WhitespaceTokenizer tokenizer = new WhitespaceTokenizer(); tokenizer.setStringToTokenize(testString); assertFalse(tokenizer.next(testString)); }
Example #4
Source File: StringValueUtilsTest.java From flink with Apache License 2.0 | 5 votes |
@Test public void testTokenizerOnStringWithoutNexToken() { StringValue testString = new StringValue("test"); StringValueUtils.WhitespaceTokenizer tokenizer = new WhitespaceTokenizer(); tokenizer.setStringToTokenize(testString); //first token tokenizer.next(testString); //next token is not exist assertFalse(tokenizer.next(testString)); }
Example #5
Source File: StringValueUtilsTest.java From flink with Apache License 2.0 | 5 votes |
@Test public void testTokenizerOnStringWithNexToken() { StringValue testString = new StringValue("test test"); StringValueUtils.WhitespaceTokenizer tokenizer = new WhitespaceTokenizer(); tokenizer.setStringToTokenize(testString); assertTrue(tokenizer.next(testString)); }
Example #6
Source File: StringValueUtilsTest.java From flink with Apache License 2.0 | 5 votes |
@Test public void testTokenizerOnStringOnlyWithDelimiter() { StringValue testString = new StringValue(" "); StringValueUtils.WhitespaceTokenizer tokenizer = new WhitespaceTokenizer(); tokenizer.setStringToTokenize(testString); assertFalse(tokenizer.next(testString)); }
Example #7
Source File: StringValueUtilsTest.java From flink with Apache License 2.0 | 5 votes |
@Test public void testTokenizerOnStringWithoutNexToken() { StringValue testString = new StringValue("test"); StringValueUtils.WhitespaceTokenizer tokenizer = new WhitespaceTokenizer(); tokenizer.setStringToTokenize(testString); //first token tokenizer.next(testString); //next token is not exist assertFalse(tokenizer.next(testString)); }
Example #8
Source File: StringValueUtilsTest.java From flink with Apache License 2.0 | 5 votes |
@Test public void testTokenizerOnStringWithNexToken() { StringValue testString = new StringValue("test test"); StringValueUtils.WhitespaceTokenizer tokenizer = new WhitespaceTokenizer(); tokenizer.setStringToTokenize(testString); assertTrue(tokenizer.next(testString)); }
Example #9
Source File: StringValueUtilsTest.java From flink with Apache License 2.0 | 5 votes |
@Test public void testTokenizerOnStringOnlyWithDelimiter() { StringValue testString = new StringValue(" "); StringValueUtils.WhitespaceTokenizer tokenizer = new WhitespaceTokenizer(); tokenizer.setStringToTokenize(testString); assertFalse(tokenizer.next(testString)); }