T
- the type of the source valuepublic class ToNullValue<T> extends Object implements TranslateFunction<T,org.apache.flink.types.NullValue>
NullValue
.Constructor and Description |
---|
ToNullValue() |
Modifier and Type | Method and Description |
---|---|
org.apache.flink.types.NullValue |
translate(T value,
org.apache.flink.types.NullValue reuse)
The translating method.
|
public org.apache.flink.types.NullValue translate(T value, org.apache.flink.types.NullValue reuse) throws Exception
TranslateFunction
translate
in interface TranslateFunction<T,org.apache.flink.types.NullValue>
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.