public class LongValueToIntValue extends Object implements TranslateFunction<org.apache.flink.types.LongValue,org.apache.flink.types.IntValue>
Constructor and Description |
---|
LongValueToIntValue() |
Modifier and Type | Method and Description |
---|---|
org.apache.flink.types.IntValue |
translate(org.apache.flink.types.LongValue value,
org.apache.flink.types.IntValue reuse)
The translating method.
|
public org.apache.flink.types.IntValue translate(org.apache.flink.types.LongValue value, org.apache.flink.types.IntValue reuse) throws Exception
TranslateFunction
translate
in interface TranslateFunction<org.apache.flink.types.LongValue,org.apache.flink.types.IntValue>
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–2016 The Apache Software Foundation. All rights reserved.