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 File: Graph.java    From Flink-CEPplus with 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 File: Graph.java    From flink with 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 File: Graph.java    From flink with 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));
}