K - The type of the vertex key in the graphVV - The type of the vertex value in the graphEV - The type of the edge value in the graphM - The intermediate type used by the gather, sum and apply functionspublic class GatherSumApplyIteration<K,VV,EV,M> extends Object implements org.apache.flink.api.java.operators.CustomUnaryOperation<Vertex<K,VV>,Vertex<K,VV>>
| Modifier and Type | Method and Description |
|---|---|
void |
configure(GSAConfiguration parameters)
Configures this gather-sum-apply iteration with the provided parameters.
|
org.apache.flink.api.java.DataSet<Vertex<K,VV>> |
createResult()
Computes the results of the gather-sum-apply iteration.
|
GSAConfiguration |
getIterationConfiguration() |
void |
setInput(org.apache.flink.api.java.DataSet<Vertex<K,VV>> dataSet)
Sets the input data set for this operator.
|
static <K,VV,EV,M> |
withEdges(org.apache.flink.api.java.DataSet<Edge<K,EV>> edges,
GatherFunction<VV,EV,M> gather,
SumFunction<VV,EV,M> sum,
ApplyFunction<K,VV,M> apply,
int maximumNumberOfIterations)
Creates a new gather-sum-apply iteration operator for graphs.
|
public void setInput(org.apache.flink.api.java.DataSet<Vertex<K,VV>> dataSet)
public org.apache.flink.api.java.DataSet<Vertex<K,VV>> createResult()
public static <K,VV,EV,M> GatherSumApplyIteration<K,VV,EV,M> withEdges(org.apache.flink.api.java.DataSet<Edge<K,EV>> edges, GatherFunction<VV,EV,M> gather, SumFunction<VV,EV,M> sum, ApplyFunction<K,VV,M> apply, int maximumNumberOfIterations)
K - The type of the vertex key in the graphVV - The type of the vertex value in the graphEV - The type of the edge value in the graphM - The intermediate type used by the gather, sum and apply functionsedges - The edge DataSetgather - The gather function of the GSA iterationsum - The sum function of the GSA iterationapply - The apply function of the GSA iterationmaximumNumberOfIterations - The maximum number of iterations executedpublic void configure(GSAConfiguration parameters)
parameters - the configuration parameterspublic GSAConfiguration getIterationConfiguration()
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.