public static final class ConnectedComponents.CCMessenger<K,VV extends Comparable<VV>> extends ScatterFunction<K,VV,VV,org.apache.flink.types.NullValue> implements org.apache.flink.api.java.typeutils.ResultTypeQueryable<VV>
| Constructor and Description |
|---|
CCMessenger(org.apache.flink.api.common.typeinfo.TypeInformation<VV> typeInformation) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.api.common.typeinfo.TypeInformation<VV> |
getProducedType() |
void |
sendMessages(Vertex<K,VV> vertex)
This method is invoked once per superstep for each vertex that was changed in that superstep.
|
getBroadcastSet, getDirection, getEdges, getInDegree, getIterationAggregator, getNumberOfVertices, getOutDegree, getPreviousIterationAggregate, getSuperstepNumber, postSuperstep, preSuperstep, sendMessageTo, sendMessageToAllNeighborspublic CCMessenger(org.apache.flink.api.common.typeinfo.TypeInformation<VV> typeInformation)
public void sendMessages(Vertex<K,VV> vertex) throws Exception
ScatterFunctionsendMessages in class ScatterFunction<K,VV extends Comparable<VV>,VV extends Comparable<VV>,org.apache.flink.types.NullValue>vertex - The vertex that was changed.Exception - The computation may throw exceptions, which causes the superstep to fail.public org.apache.flink.api.common.typeinfo.TypeInformation<VV> getProducedType()
getProducedType in interface org.apache.flink.api.java.typeutils.ResultTypeQueryable<VV extends Comparable<VV>>Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.