T
- @Internal public class FormattingMapper<T> extends Object implements MapFunction<T,String>
TextOutputFormat.TextFormatter
.Constructor and Description |
---|
FormattingMapper(TextOutputFormat.TextFormatter<T> formatter) |
public FormattingMapper(TextOutputFormat.TextFormatter<T> formatter)
public String map(T value) throws Exception
MapFunction
map
in interface MapFunction<T,String>
value
- The input value.Exception
- This method may throw exceptions. Throwing an exception will cause the operation
to fail and may trigger recovery.Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.