public class ScatterGatherConfiguration extends IterationConfiguration
GatherFunction
and ScatterFunction
The VertexCentricConfiguration object is passed as an argument to
(
org.apache.flink.graph.spargel.GatherFunction, org.apache.flink.graph.spargel.ScatterFunction, int,
ScatterGatherConfiguration)
.
Constructor and Description |
---|
ScatterGatherConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
addBroadcastSetForGatherFunction(String name,
DataSet<?> data)
Adds a data set as a broadcast set to the gather function.
|
void |
addBroadcastSetForScatterFunction(String name,
DataSet<?> data)
Adds a data set as a broadcast set to the scatter function.
|
EdgeDirection |
getDirection()
Gets the direction in which messages are sent in the ScatterFunction.
|
List<Tuple2<String,DataSet<?>>> |
getGatherBcastVars()
Get the broadcast variables of the GatherFunction.
|
List<Tuple2<String,DataSet<?>>> |
getScatterBcastVars()
Get the broadcast variables of the ScatterFunction.
|
boolean |
isOptDegrees()
Gets whether the degrees option is set.
|
void |
setDirection(EdgeDirection direction)
Sets the direction in which messages are sent in the ScatterFunction.
|
void |
setOptDegrees(boolean optDegrees)
Sets the degree option.
|
getAggregators, getName, getParallelism, isOptNumVertices, isSolutionSetUnmanagedMemory, registerAggregator, setName, setOptNumVertices, setParallelism, setSolutionSetUnmanagedMemory
public void addBroadcastSetForScatterFunction(String name, DataSet<?> data)
name
- The name under which the broadcast data is available in the scatter function.data
- The data set to be broadcast.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 broadcast.public List<Tuple2<String,DataSet<?>>> getScatterBcastVars()
public List<Tuple2<String,DataSet<?>>> getGatherBcastVars()
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–2019 The Apache Software Foundation. All rights reserved.