public class GraphGeneratorUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static org.apache.flink.api.java.DataSet<Vertex<org.apache.flink.types.LongValue,org.apache.flink.types.NullValue>> |
vertexSequence(org.apache.flink.api.java.ExecutionEnvironment env,
int parallelism,
long vertexCount)
Generates
Vertices with sequential, numerical labels. |
static <K,EV> org.apache.flink.api.java.DataSet<Vertex<K,org.apache.flink.types.NullValue>> |
vertexSet(org.apache.flink.api.java.DataSet<Edge<K,EV>> edges,
int parallelism)
|
public static org.apache.flink.api.java.DataSet<Vertex<org.apache.flink.types.LongValue,org.apache.flink.types.NullValue>> vertexSequence(org.apache.flink.api.java.ExecutionEnvironment env, int parallelism, long vertexCount)
Vertices with sequential, numerical labels.env - the Flink execution environment.parallelism - operator parallelismvertexCount - number of sequential vertex labelsDataSet of sequentially labeled verticespublic static <K,EV> org.apache.flink.api.java.DataSet<Vertex<K,org.apache.flink.types.NullValue>> vertexSet(org.apache.flink.api.java.DataSet<Edge<K,EV>> edges, int parallelism)
K - label typeEV - edge value typeedges - source DataSet of Edgesparallelism - operator parallelismDataSet of discovered verticesGraph.fromDataSet(DataSet, DataSet, ExecutionEnvironment)Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.