public class GraphGeneratorUtils extends Object
Constructor and Description |
---|
GraphGeneratorUtils() |
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 Vertices
public 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 Edge
sparallelism
- operator parallelismDataSet
of discovered Vertices
Graph.fromDataSet(DataSet, DataSet, ExecutionEnvironment)
Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.