Java Code Examples for org.apache.flink.api.java.io.TextOutputFormat#TextFormatter

The following examples show how to use org.apache.flink.api.java.io.TextOutputFormat#TextFormatter . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FunctionCompiler.java    From rheem with Apache License 2.0 5 votes vote down vote up
public <T> TextOutputFormat.TextFormatter<T> compileOutput(TransformationDescriptor<T, String> formattingDescriptor) {
    Function<T, String> format = formattingDescriptor.getJavaImplementation();
    return new TextOutputFormat.TextFormatter<T>(){

        @Override
        public String format(T value) {
            return format.apply(value);
        }
    };
}
 
Example 2
Source File: FormattingMapper.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
public FormattingMapper(TextOutputFormat.TextFormatter<T> formatter) {
	this.formatter = formatter;
}
 
Example 3
Source File: FormattingMapper.java    From flink with Apache License 2.0 4 votes vote down vote up
public FormattingMapper(TextOutputFormat.TextFormatter<T> formatter) {
	this.formatter = formatter;
}
 
Example 4
Source File: FormattingMapper.java    From flink with Apache License 2.0 4 votes vote down vote up
public FormattingMapper(TextOutputFormat.TextFormatter<T> formatter) {
	this.formatter = formatter;
}