public class GSAConfiguration extends IterationConfiguration
GatherFunction, SumFunction as well as
ApplyFunction.
The GSAConfiguration object is passed as an argument to
Graph.runGatherSumApplyIteration(org.apache.flink.graph.gsa.GatherFunction,
org.apache.flink.graph.gsa.SumFunction, org.apache.flink.graph.gsa.ApplyFunction, int)
| Constructor and Description |
|---|
GSAConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
void |
addBroadcastSetForApplyFunction(String name,
org.apache.flink.api.java.DataSet<?> data)
Adds a data set as a broadcast set to the apply function.
|
void |
addBroadcastSetForGatherFunction(String name,
org.apache.flink.api.java.DataSet<?> data)
Adds a data set as a broadcast set to the gather function.
|
void |
addBroadcastSetForSumFunction(String name,
org.apache.flink.api.java.DataSet<?> data)
Adds a data set as a broadcast set to the sum function.
|
List<org.apache.flink.api.java.tuple.Tuple2<String,org.apache.flink.api.java.DataSet<?>>> |
getApplyBcastVars()
Get the broadcast variables of the ApplyFunction.
|
EdgeDirection |
getDirection()
Gets the direction from which the neighbors are to be selected
By default the neighbors who are target of the edges are selected.
|
List<org.apache.flink.api.java.tuple.Tuple2<String,org.apache.flink.api.java.DataSet<?>>> |
getGatherBcastVars()
Get the broadcast variables of the GatherFunction.
|
List<org.apache.flink.api.java.tuple.Tuple2<String,org.apache.flink.api.java.DataSet<?>>> |
getSumBcastVars()
Get the broadcast variables of the SumFunction.
|
void |
setDirection(EdgeDirection direction)
Sets the direction in which neighbors are to be selected
By default the neighbors who are target of the edges are selected.
|
getAggregators, getName, getParallelism, isOptNumVertices, isSolutionSetUnmanagedMemory, registerAggregator, setName, setOptNumVertices, setParallelism, setSolutionSetUnmanagedMemorypublic void addBroadcastSetForGatherFunction(String name, org.apache.flink.api.java.DataSet<?> data)
name - The name under which the broadcast data is available in the gather function.data - The data set to be broadcast.public void addBroadcastSetForSumFunction(String name, org.apache.flink.api.java.DataSet<?> data)
name - The name under which the broadcast data is available in the sum function.data - The data set to be broadcast.public void addBroadcastSetForApplyFunction(String name, org.apache.flink.api.java.DataSet<?> data)
name - The name under which the broadcast data is available in the apply function.data - The data set to be broadcast.public List<org.apache.flink.api.java.tuple.Tuple2<String,org.apache.flink.api.java.DataSet<?>>> getGatherBcastVars()
public List<org.apache.flink.api.java.tuple.Tuple2<String,org.apache.flink.api.java.DataSet<?>>> getSumBcastVars()
public List<org.apache.flink.api.java.tuple.Tuple2<String,org.apache.flink.api.java.DataSet<?>>> getApplyBcastVars()
public EdgeDirection getDirection()
public void setDirection(EdgeDirection direction)
direction - - IN, OUT or ALLCopyright © 2014–2019 The Apache Software Foundation. All rights reserved.