I
- input typeO
- output typepublic static class GraphUtils.MapTo<I,O> extends Object implements MapFunction<I,O>
public MapTo(O value)
value
- the object to emit for each elementpublic O map(I o) throws Exception
MapFunction
map
in interface MapFunction<I,O>
o
- The input value.Exception
- This method may throw exceptions. Throwing an exception will cause the operation
to fail and may trigger recovery.Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.