T
- ID typepublic static class LocalClusteringCoefficient.Result<T> extends org.apache.flink.api.java.tuple.Tuple3<T,org.apache.flink.types.LongValue,org.apache.flink.types.LongValue> implements PrintableResult, UnaryResult<T>
Tuple3
to encapsulate results from the Local Clustering Coefficient algorithm.Modifier and Type | Field and Description |
---|---|
static int |
HASH_SEED |
Constructor and Description |
---|
Result() |
Modifier and Type | Method and Description |
---|---|
org.apache.flink.types.LongValue |
getDegree()
Get the vertex degree.
|
double |
getLocalClusteringCoefficientScore()
Get the local clustering coefficient score.
|
org.apache.flink.types.LongValue |
getTriangleCount()
Get the number of triangles containing this vertex; equivalently,
this is the number of edges between neighbors of this vertex.
|
T |
getVertexId0()
Get the first vertex ID.
|
int |
hashCode() |
void |
setVertexId0(T value)
Set the first vertex ID.
|
String |
toPrintableString()
Format values into a human-readable string.
|
public static final int HASH_SEED
public T getVertexId0()
UnaryResult
getVertexId0
in interface UnaryResult<T>
public void setVertexId0(T value)
UnaryResult
setVertexId0
in interface UnaryResult<T>
value
- new vertex IDpublic org.apache.flink.types.LongValue getDegree()
public org.apache.flink.types.LongValue getTriangleCount()
public double getLocalClusteringCoefficientScore()
Double.NaN
is returned for a vertex with degree 1
for which both the triangle count and number of neighbors are zero.public String toPrintableString()
toPrintableString
in interface PrintableResult
public int hashCode()
hashCode
in class org.apache.flink.api.java.tuple.Tuple3<T,org.apache.flink.types.LongValue,org.apache.flink.types.LongValue>
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.