IN - Type of the input elements.OUT - Type of the returned elements.public abstract class RichTranslateFunction<IN,OUT> extends org.apache.flink.api.common.functions.AbstractRichFunction implements TranslateFunction<IN,OUT>
TranslateFunction. As a RichFunction, it gives access to the
RuntimeContext and provides setup and teardown methods:
RichFunction.open(org.apache.flink.configuration.Configuration) and
RichFunction.close().| Constructor and Description |
|---|
RichTranslateFunction() |
| Modifier and Type | Method and Description |
|---|---|
abstract OUT |
translate(IN value,
OUT reuse)
The translating method.
|
public abstract OUT translate(IN value, OUT reuse) throws Exception
TranslateFunctiontranslate in interface TranslateFunction<IN,OUT>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–2019 The Apache Software Foundation. All rights reserved.