public class GraphKeyTypeTransform<VV,EV> extends ParameterizedBase implements Transform<org.apache.flink.graph.Graph<org.apache.flink.types.LongValue,VV,EV>,org.apache.flink.graph.Graph<?,VV,EV>,org.apache.flink.api.java.DataSet<org.apache.flink.graph.asm.result.TranslatableResult<?>>,org.apache.flink.api.java.DataSet<org.apache.flink.graph.asm.result.TranslatableResult<?>>>
LongValue to byte, short, char, integer, float,
double, or string. Both boxed Java types and Flink Value types are
supported. The result is transformed when necessary to standardize hashCode.| Constructor and Description |
|---|
GraphKeyTypeTransform(long vertexCount)
Create a key type transform.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getIdentity()
A human-readable identifier summarizing the transform and configuration.
|
org.apache.flink.graph.Graph<?,VV,EV> |
transformInput(org.apache.flink.graph.Graph<org.apache.flink.types.LongValue,VV,EV> input)
Apply the forward transformation to the input graph.
|
org.apache.flink.api.java.DataSet<org.apache.flink.graph.asm.result.TranslatableResult<?>> |
transformResult(org.apache.flink.api.java.DataSet<org.apache.flink.graph.asm.result.TranslatableResult<?>> result)
Apply the reverse transformation to the algorithm result.
|
addParameter, configure, getName, getUsageclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconfigure, getName, getUsagepublic GraphKeyTypeTransform(long vertexCount)
vertexCount - the size of the vertex set of the input graphpublic String getIdentity()
TransformgetIdentity in interface Transform<org.apache.flink.graph.Graph<org.apache.flink.types.LongValue,VV,EV>,org.apache.flink.graph.Graph<?,VV,EV>,org.apache.flink.api.java.DataSet<org.apache.flink.graph.asm.result.TranslatableResult<?>>,org.apache.flink.api.java.DataSet<org.apache.flink.graph.asm.result.TranslatableResult<?>>>public org.apache.flink.graph.Graph<?,VV,EV> transformInput(org.apache.flink.graph.Graph<org.apache.flink.types.LongValue,VV,EV> input) throws Exception
TransformtransformInput in interface Transform<org.apache.flink.graph.Graph<org.apache.flink.types.LongValue,VV,EV>,org.apache.flink.graph.Graph<?,VV,EV>,org.apache.flink.api.java.DataSet<org.apache.flink.graph.asm.result.TranslatableResult<?>>,org.apache.flink.api.java.DataSet<org.apache.flink.graph.asm.result.TranslatableResult<?>>>input - transformation inputExceptionpublic org.apache.flink.api.java.DataSet<org.apache.flink.graph.asm.result.TranslatableResult<?>> transformResult(org.apache.flink.api.java.DataSet<org.apache.flink.graph.asm.result.TranslatableResult<?>> result)
throws Exception
TransformtransformResult in interface Transform<org.apache.flink.graph.Graph<org.apache.flink.types.LongValue,VV,EV>,org.apache.flink.graph.Graph<?,VV,EV>,org.apache.flink.api.java.DataSet<org.apache.flink.graph.asm.result.TranslatableResult<?>>,org.apache.flink.api.java.DataSet<org.apache.flink.graph.asm.result.TranslatableResult<?>>>result - transformation inputExceptionCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.