K
- graph ID typeVV
- vertex value typeEV
- edge value typepublic class LocalClusteringCoefficient<K extends Comparable<K> & org.apache.flink.types.CopyableValue<K>,VV,EV> extends GraphAlgorithmDelegatingDataSet<K,VV,EV,LocalClusteringCoefficient.Result<K>>
Modifier and Type | Class and Description |
---|---|
static class |
LocalClusteringCoefficient.Result<T>
Wraps the vertex type to encapsulate results from the Local Clustering Coefficient algorithm.
|
Constructor and Description |
---|
LocalClusteringCoefficient() |
Modifier and Type | Method and Description |
---|---|
protected String |
getAlgorithmName()
Algorithms are identified by name rather than by class to allow subclassing.
|
protected boolean |
mergeConfiguration(GraphAlgorithmDelegatingDataSet other)
An algorithm must first test whether the configurations can be merged
before merging individual fields.
|
org.apache.flink.api.java.DataSet<LocalClusteringCoefficient.Result<K>> |
runInternal(Graph<K,VV,EV> input)
The implementation of the algorithm, renamed from
GraphAlgorithm.run(Graph) . |
LocalClusteringCoefficient<K,VV,EV> |
setLittleParallelism(int littleParallelism)
Override the parallelism of operators processing small amounts of data.
|
equals, hashCode, run
public LocalClusteringCoefficient<K,VV,EV> setLittleParallelism(int littleParallelism)
littleParallelism
- operator parallelismprotected String getAlgorithmName()
GraphAlgorithmDelegatingDataSet
getAlgorithmName
in class GraphAlgorithmDelegatingDataSet<K extends Comparable<K> & org.apache.flink.types.CopyableValue<K>,VV,EV,LocalClusteringCoefficient.Result<K extends Comparable<K> & org.apache.flink.types.CopyableValue<K>>>
protected boolean mergeConfiguration(GraphAlgorithmDelegatingDataSet other)
GraphAlgorithmDelegatingDataSet
mergeConfiguration
in class GraphAlgorithmDelegatingDataSet<K extends Comparable<K> & org.apache.flink.types.CopyableValue<K>,VV,EV,LocalClusteringCoefficient.Result<K extends Comparable<K> & org.apache.flink.types.CopyableValue<K>>>
other
- the algorithm with which to compare and mergepublic org.apache.flink.api.java.DataSet<LocalClusteringCoefficient.Result<K>> runInternal(Graph<K,VV,EV> input) throws Exception
GraphAlgorithmDelegatingDataSet
GraphAlgorithm.run(Graph)
.runInternal
in class GraphAlgorithmDelegatingDataSet<K extends Comparable<K> & org.apache.flink.types.CopyableValue<K>,VV,EV,LocalClusteringCoefficient.Result<K extends Comparable<K> & org.apache.flink.types.CopyableValue<K>>>
input
- the input graphException
Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.