org.apache.flink.graph.utils.EdgeToTuple2Map Java Examples

The following examples show how to use org.apache.flink.graph.utils.EdgeToTuple2Map. 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: EdgeList.java    From Flink-CEPplus with Apache License 2.0 5 votes vote down vote up
@Override
public DataSet plan(Graph<K, VV, EV> graph) throws Exception {
	DataSet<Edge<K, EV>> edges = graph.getEdges();

	if (hasNullValueEdges(edges)) {
		return edges
			.map(new EdgeToTuple2Map<>())
			.name("Edge to Tuple2")
			.setParallelism(parallelism.getValue().intValue());
	} else {
		return edges;
	}
}
 
Example #2
Source File: EdgeList.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
public DataSet plan(Graph<K, VV, EV> graph) throws Exception {
	DataSet<Edge<K, EV>> edges = graph.getEdges();

	if (hasNullValueEdges(edges)) {
		return edges
			.map(new EdgeToTuple2Map<>())
			.name("Edge to Tuple2")
			.setParallelism(parallelism.getValue().intValue());
	} else {
		return edges;
	}
}
 
Example #3
Source File: EdgeList.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
public DataSet plan(Graph<K, VV, EV> graph) throws Exception {
	DataSet<Edge<K, EV>> edges = graph.getEdges();

	if (hasNullValueEdges(edges)) {
		return edges
			.map(new EdgeToTuple2Map<>())
			.name("Edge to Tuple2")
			.setParallelism(parallelism.getValue().intValue());
	} else {
		return edges;
	}
}