T
- ID typepublic static class JaccardIndex.Result<T> extends Edge<T,org.apache.flink.api.java.tuple.Tuple2<org.apache.flink.types.IntValue,org.apache.flink.types.IntValue>>
Modifier and Type | Field and Description |
---|---|
static int |
HASH_SEED |
Constructor and Description |
---|
Result() |
Modifier and Type | Method and Description |
---|---|
org.apache.flink.types.IntValue |
getDistinctNeighborCount()
Get the distinct neighbor count.
|
double |
getJaccardIndexScore()
Get the Jaccard Index score, equal to the number of shared neighbors
of the source and target vertices divided by the number of distinct
neighbors.
|
org.apache.flink.types.IntValue |
getSharedNeighborCount()
Get the shared neighbor count.
|
int |
hashCode() |
String |
toVerboseString() |
getSource, getTarget, getValue, reverse, setSource, setTarget, setValue
public static final int HASH_SEED
public org.apache.flink.types.IntValue getSharedNeighborCount()
public org.apache.flink.types.IntValue getDistinctNeighborCount()
public double getJaccardIndexScore()
public String toVerboseString()
Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.