T
- ID typepublic static class AdamicAdar.Result<T> extends org.apache.flink.api.java.tuple.Tuple3<T,T,org.apache.flink.types.FloatValue> implements PrintableResult, BinaryResult<T>, Comparable<AdamicAdar.Result<T>>
Tuple3
to encapsulate results from the Adamic-Adar algorithm.Modifier and Type | Field and Description |
---|---|
static int |
HASH_SEED |
Constructor and Description |
---|
Result()
No-args constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(AdamicAdar.Result<T> o) |
org.apache.flink.types.FloatValue |
getAdamicAdarScore()
Get the Adamic-Adar score, equal to the sum over common neighbors of
the inverse logarithm of degree
|
T |
getVertexId0()
Get the first vertex ID.
|
T |
getVertexId1()
Get the second vertex ID.
|
int |
hashCode() |
void |
setVertexId0(T value)
Set the first vertex ID.
|
void |
setVertexId1(T value)
Set the second vertex ID.
|
String |
toPrintableString()
A human-readable representation of this value.
|
public static final int HASH_SEED
public T getVertexId0()
BinaryResult
getVertexId0
in interface BinaryResult<T>
public void setVertexId0(T value)
BinaryResult
setVertexId0
in interface BinaryResult<T>
value
- new vertex IDpublic T getVertexId1()
BinaryResult
getVertexId1
in interface BinaryResult<T>
public void setVertexId1(T value)
BinaryResult
setVertexId1
in interface BinaryResult<T>
value
- new vertex IDpublic org.apache.flink.types.FloatValue getAdamicAdarScore()
public String toPrintableString()
PrintableResult
toPrintableString
in interface PrintableResult
public int hashCode()
public int compareTo(AdamicAdar.Result<T> o)
compareTo
in interface Comparable<AdamicAdar.Result<T>>
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.