T
- Type of the input elements.O
- Type of the returned elements.public interface TranslateFunction<T,O> extends org.apache.flink.api.common.functions.Function, Serializable
Translate functions are used within the Graph API and by translating GraphAlgorithms.
O translate(T value, O reuse) throws Exception
value
- input value.reuse
- value which may be reused for output; if reuse is null then a new output object
must be instantiated and returnedException
- 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.