T
- ID typepublic static class PageRank.Result<T> extends org.apache.flink.api.java.tuple.Tuple2<T,org.apache.flink.types.DoubleValue> implements PrintableResult, UnaryResult<T>
Tuple2
to encapsulate results from the PageRank 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.DoubleValue |
getPageRankScore()
Get the PageRank score.
|
T |
getVertexId0()
Get the first vertex ID.
|
int |
hashCode() |
void |
setVertexId0(T value)
Set the first vertex ID.
|
String |
toPrintableString()
A human-readable representation of this value.
|
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.DoubleValue getPageRankScore()
public String toPrintableString()
PrintableResult
toPrintableString
in interface PrintableResult
public int hashCode()
hashCode
in class org.apache.flink.api.java.tuple.Tuple2<T,org.apache.flink.types.DoubleValue>
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.