org.apache.flink.graph.asm.translate.TranslateGraphIds Java Examples

The following examples show how to use org.apache.flink.graph.asm.translate.TranslateGraphIds. 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: Graph.java    License: Apache License 2.0 2 votes vote down vote up
/**
 * Translate {@link Vertex} and {@link Edge} IDs using the given {@link MapFunction}.
 *
 * @param translator implements conversion from {@code K} to {@code NEW}
 * @param <NEW> new ID type
 * @return graph with translated vertex and edge IDs
 * @throws Exception
 */
public <NEW> Graph<NEW, VV, EV> translateGraphIds(TranslateFunction<K, NEW> translator) throws Exception {
	return run(new TranslateGraphIds<>(translator));
}
 
Example #2
Source Project: flink   Author: flink-tpc-ds   File: Graph.java    License: Apache License 2.0 2 votes vote down vote up
/**
 * Translate {@link Vertex} and {@link Edge} IDs using the given {@link MapFunction}.
 *
 * @param translator implements conversion from {@code K} to {@code NEW}
 * @param <NEW> new ID type
 * @return graph with translated vertex and edge IDs
 * @throws Exception
 */
public <NEW> Graph<NEW, VV, EV> translateGraphIds(TranslateFunction<K, NEW> translator) throws Exception {
	return run(new TranslateGraphIds<>(translator));
}
 
Example #3
Source Project: flink   Author: apache   File: Graph.java    License: Apache License 2.0 2 votes vote down vote up
/**
 * Translate {@link Vertex} and {@link Edge} IDs using the given {@link MapFunction}.
 *
 * @param translator implements conversion from {@code K} to {@code NEW}
 * @param <NEW> new ID type
 * @return graph with translated vertex and edge IDs
 * @throws Exception
 */
public <NEW> Graph<NEW, VV, EV> translateGraphIds(TranslateFunction<K, NEW> translator) throws Exception {
	return run(new TranslateGraphIds<>(translator));
}