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 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.
|
DataSet<Vertex<K,VV>> |
createResult()
Computes the results of the gather-sum-apply iteration
|
GSAConfiguration |
getIterationConfiguration() |
void |
setInput(DataSet<Vertex<K,VV>> dataSet)
Sets the input data set for this operator.
|
static <K,VV,EV,M> |
withEdges(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(DataSet<Vertex<K,VV>> dataSet)
public DataSet<Vertex<K,VV>> createResult()
createResult
in interface CustomUnaryOperation<Vertex<K,VV>,Vertex<K,VV>>
public static final <K,VV,EV,M> GatherSumApplyIteration<K,VV,EV,M> withEdges(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–2017 The Apache Software Foundation. All rights reserved.