public class ScatterGatherConfiguration extends IterationConfiguration
VertexUpdateFunction
and MessagingFunction
The VertexCentricConfiguration object is passed as an argument to
(
org.apache.flink.graph.spargel.VertexUpdateFunction, org.apache.flink.graph.spargel.MessagingFunction, int,
ScatterGatherConfiguration)
.Constructor and Description |
---|
ScatterGatherConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
addBroadcastSetForMessagingFunction(String name,
org.apache.flink.api.java.DataSet<?> data)
Adds a data set as a broadcast set to the messaging function.
|
void |
addBroadcastSetForUpdateFunction(String name,
org.apache.flink.api.java.DataSet<?> data)
Adds a data set as a broadcast set to the vertex update function.
|
EdgeDirection |
getDirection()
Gets the direction in which messages are sent in the MessagingFunction.
|
List<org.apache.flink.api.java.tuple.Tuple2<String,org.apache.flink.api.java.DataSet<?>>> |
getMessagingBcastVars()
Get the broadcast variables of the MessagingFunction.
|
List<org.apache.flink.api.java.tuple.Tuple2<String,org.apache.flink.api.java.DataSet<?>>> |
getUpdateBcastVars()
Get the broadcast variables of the VertexUpdateFunction.
|
boolean |
isOptDegrees()
Gets whether the degrees option is set.
|
void |
setDirection(EdgeDirection direction)
Sets the direction in which messages are sent in the MessagingFunction.
|
void |
setOptDegrees(boolean optDegrees)
Sets the degree option.
|
getAggregators, getName, getParallelism, isOptNumVertices, isSolutionSetUnmanagedMemory, registerAggregator, setName, setOptNumVertices, setParallelism, setSolutionSetUnmanagedMemory
public void addBroadcastSetForMessagingFunction(String name, org.apache.flink.api.java.DataSet<?> data)
name
- The name under which the broadcast data is available in the messaging function.data
- The data set to be broadcasted.public void addBroadcastSetForUpdateFunction(String name, org.apache.flink.api.java.DataSet<?> data)
name
- The name under which the broadcast data is available in the vertex update function.data
- The data set to be broadcasted.public List<org.apache.flink.api.java.tuple.Tuple2<String,org.apache.flink.api.java.DataSet<?>>> getUpdateBcastVars()
public List<org.apache.flink.api.java.tuple.Tuple2<String,org.apache.flink.api.java.DataSet<?>>> getMessagingBcastVars()
public boolean isOptDegrees()
public void setOptDegrees(boolean optDegrees)
optDegrees
- True, to set this option, false otherwise.public EdgeDirection getDirection()
public void setDirection(EdgeDirection direction)
direction
- - IN, OUT or ALLCopyright © 2014–2016 The Apache Software Foundation. All rights reserved.