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,
DataSet<?> data)
Adds a data set as a broadcast set to the apply function.
|
void |
addBroadcastSetForGatherFunction(String name,
DataSet<?> data)
Adds a data set as a broadcast set to the gather function.
|
void |
addBroadcastSetForSumFunction(String name,
DataSet<?> data)
Adds a data set as a broadcast set to the sum function.
|
List<Tuple2<String,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<Tuple2<String,DataSet<?>>> |
getGatherBcastVars()
Get the broadcast variables of the GatherFunction.
|
List<Tuple2<String,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, setSolutionSetUnmanagedMemory
public void addBroadcastSetForGatherFunction(String name, DataSet<?> data)
name
- The name under which the broadcast data is available in the gather function.data
- The data set to be broadcasted.public void addBroadcastSetForSumFunction(String name, DataSet<?> data)
name
- The name under which the broadcast data is available in the sum function.data
- The data set to be broadcasted.public void addBroadcastSetForApplyFunction(String name, DataSet<?> data)
name
- The name under which the broadcast data is available in the apply function.data
- The data set to be broadcasted.public List<Tuple2<String,DataSet<?>>> getGatherBcastVars()
public List<Tuple2<String,DataSet<?>>> getSumBcastVars()
public List<Tuple2<String,DataSet<?>>> getApplyBcastVars()
public EdgeDirection getDirection()
public void setDirection(EdgeDirection direction)
direction
- - IN, OUT or ALLCopyright © 2014–2017 The Apache Software Foundation. All rights reserved.