org.apache.flink.graph.drivers.transform.GraphKeyTypeTransform.LongValueToLong Java Examples
The following examples show how to use
org.apache.flink.graph.drivers.transform.GraphKeyTypeTransform.LongValueToLong.
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: GraphKeyTypeTransformTest.java From Flink-CEPplus with Apache License 2.0 | 5 votes |
@Test public void testLongValueToLongTranslation() throws Exception { TranslateFunction<LongValue, Long> translator = new LongValueToLong(); Assert.assertEquals(Long.valueOf(0L), translator.translate(new LongValue(0L), null)); Assert.assertEquals(Long.valueOf(Long.MIN_VALUE), translator.translate(new LongValue(Long.MIN_VALUE), null)); Assert.assertEquals(Long.valueOf(Long.MAX_VALUE), translator.translate(new LongValue(Long.MAX_VALUE), null)); }
Example #2
Source File: GraphKeyTypeTransformTest.java From flink with Apache License 2.0 | 5 votes |
@Test public void testLongValueToLongTranslation() throws Exception { TranslateFunction<LongValue, Long> translator = new LongValueToLong(); Assert.assertEquals(Long.valueOf(0L), translator.translate(new LongValue(0L), null)); Assert.assertEquals(Long.valueOf(Long.MIN_VALUE), translator.translate(new LongValue(Long.MIN_VALUE), null)); Assert.assertEquals(Long.valueOf(Long.MAX_VALUE), translator.translate(new LongValue(Long.MAX_VALUE), null)); }
Example #3
Source File: GraphKeyTypeTransformTest.java From flink with Apache License 2.0 | 5 votes |
@Test public void testLongValueToLongTranslation() throws Exception { TranslateFunction<LongValue, Long> translator = new LongValueToLong(); Assert.assertEquals(Long.valueOf(0L), translator.translate(new LongValue(0L), null)); Assert.assertEquals(Long.valueOf(Long.MIN_VALUE), translator.translate(new LongValue(Long.MIN_VALUE), null)); Assert.assertEquals(Long.valueOf(Long.MAX_VALUE), translator.translate(new LongValue(Long.MAX_VALUE), null)); }