T
- ID typepublic static class JaccardIndex.Result<T> extends Edge<T,Tuple2<IntValue,IntValue>>
Modifier and Type | Field and Description |
---|---|
static int |
HASH_SEED |
Constructor and Description |
---|
Result() |
Modifier and Type | Method and Description |
---|---|
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.
|
IntValue |
getSharedNeighborCount()
Get the shared neighbor count.
|
int |
hashCode() |
String |
toVerboseString() |
getSource, getTarget, getValue, reverse, setSource, setTarget, setValue
copy, equals, getArity, getField, of, setField, setFields, toString
getFieldNotNull, getTupleClass
public static final int HASH_SEED
public IntValue getSharedNeighborCount()
public IntValue getDistinctNeighborCount()
public double getJaccardIndexScore()
public String toVerboseString()
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.