org.apache.flink.graph.drivers.transform.GraphKeyTypeTransform.LongValueToChar Java Examples
The following examples show how to use
org.apache.flink.graph.drivers.transform.GraphKeyTypeTransform.LongValueToChar.
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 Project: Flink-CEPplus Author: ljygz File: GraphKeyTypeTransformTest.java License: Apache License 2.0 | 5 votes |
@Test public void testToCharacter() throws Exception { TranslateFunction<LongValue, Character> translator = new LongValueToChar(); Assert.assertEquals(Character.valueOf((char) 0), translator.translate(new LongValue(0L), null)); Assert.assertEquals(Character.valueOf(Character.MAX_VALUE), translator.translate(new LongValue(LongValueToChar.MAX_VERTEX_COUNT - 1), null)); }
Example #2
Source Project: flink Author: flink-tpc-ds File: GraphKeyTypeTransformTest.java License: Apache License 2.0 | 5 votes |
@Test public void testToCharacter() throws Exception { TranslateFunction<LongValue, Character> translator = new LongValueToChar(); Assert.assertEquals(Character.valueOf((char) 0), translator.translate(new LongValue(0L), null)); Assert.assertEquals(Character.valueOf(Character.MAX_VALUE), translator.translate(new LongValue(LongValueToChar.MAX_VERTEX_COUNT - 1), null)); }
Example #3
Source Project: flink Author: apache File: GraphKeyTypeTransformTest.java License: Apache License 2.0 | 5 votes |
@Test public void testToCharacter() throws Exception { TranslateFunction<LongValue, Character> translator = new LongValueToChar(); Assert.assertEquals(Character.valueOf((char) 0), translator.translate(new LongValue(0L), null)); Assert.assertEquals(Character.valueOf(Character.MAX_VALUE), translator.translate(new LongValue(LongValueToChar.MAX_VERTEX_COUNT - 1), null)); }
Example #4
Source Project: Flink-CEPplus Author: ljygz File: GraphKeyTypeTransformTest.java License: Apache License 2.0 | 4 votes |
@Test(expected = IllegalArgumentException.class) public void testToCharacterUpperOutOfRange() throws Exception { new LongValueToChar().translate(new LongValue(LongValueToChar.MAX_VERTEX_COUNT), null); }
Example #5
Source Project: Flink-CEPplus Author: ljygz File: GraphKeyTypeTransformTest.java License: Apache License 2.0 | 4 votes |
@Test(expected = IllegalArgumentException.class) public void testToCharacterLowerOutOfRange() throws Exception { new LongValueToChar().translate(new LongValue(-1), null); }
Example #6
Source Project: flink Author: flink-tpc-ds File: GraphKeyTypeTransformTest.java License: Apache License 2.0 | 4 votes |
@Test(expected = IllegalArgumentException.class) public void testToCharacterUpperOutOfRange() throws Exception { new LongValueToChar().translate(new LongValue(LongValueToChar.MAX_VERTEX_COUNT), null); }
Example #7
Source Project: flink Author: flink-tpc-ds File: GraphKeyTypeTransformTest.java License: Apache License 2.0 | 4 votes |
@Test(expected = IllegalArgumentException.class) public void testToCharacterLowerOutOfRange() throws Exception { new LongValueToChar().translate(new LongValue(-1), null); }
Example #8
Source Project: flink Author: apache File: GraphKeyTypeTransformTest.java License: Apache License 2.0 | 4 votes |
@Test(expected = IllegalArgumentException.class) public void testToCharacterUpperOutOfRange() throws Exception { new LongValueToChar().translate(new LongValue(LongValueToChar.MAX_VERTEX_COUNT), null); }
Example #9
Source Project: flink Author: apache File: GraphKeyTypeTransformTest.java License: Apache License 2.0 | 4 votes |
@Test(expected = IllegalArgumentException.class) public void testToCharacterLowerOutOfRange() throws Exception { new LongValueToChar().translate(new LongValue(-1), null); }