translate
public IntValue translate(LongValue value,
IntValue reuse)
throws Exception
The translating method. Takes an element from the input data set and transforms
it into exactly one element.
- Specified by:
translate
in interface TranslateFunction<LongValue,IntValue>
- Parameters:
value
- input value.
reuse
- value which may be reused for output; if reuse is null then a new output object
must be instantiated and returned
- Returns:
- the transformed value
- Throws:
Exception
- This method may throw exceptions. Throwing an exception will cause the operation
to fail and may trigger recovery.