public class GraphKeyTypeTransform<VV,EV> extends ParameterizedBase implements Transform<Graph<LongValue,VV,EV>,Graph<?,VV,EV>,DataSet<TranslatableResult<?>>,DataSet<TranslatableResult<?>>>
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.
|
Graph<?,VV,EV> |
transformInput(Graph<LongValue,VV,EV> input)
Apply the forward transformation to the input graph.
|
DataSet<TranslatableResult<?>> |
transformResult(DataSet<TranslatableResult<?>> result)
Apply the reverse transformation to the algorithm result.
|
addParameter, configure, getName, getUsage
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
configure, getName, getUsage
public GraphKeyTypeTransform(long vertexCount)
vertexCount
- the size of the vertex set of the input graphpublic String getIdentity()
Transform
getIdentity
in interface Transform<Graph<LongValue,VV,EV>,Graph<?,VV,EV>,DataSet<TranslatableResult<?>>,DataSet<TranslatableResult<?>>>
public Graph<?,VV,EV> transformInput(Graph<LongValue,VV,EV> input) throws Exception
Transform
transformInput
in interface Transform<Graph<LongValue,VV,EV>,Graph<?,VV,EV>,DataSet<TranslatableResult<?>>,DataSet<TranslatableResult<?>>>
input
- transformation inputException
public DataSet<TranslatableResult<?>> transformResult(DataSet<TranslatableResult<?>> result) throws Exception
Transform
transformResult
in interface Transform<Graph<LongValue,VV,EV>,Graph<?,VV,EV>,DataSet<TranslatableResult<?>>,DataSet<TranslatableResult<?>>>
result
- transformation inputException
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.