/** * Writes a DataSet as text file(s) to the specified location. * * <p>For each element of the DataSet the result of {@link TextFormatter#format(Object)} is written. * * @param filePath The path pointing to the location the text file is written to. * @param formatter formatter that is applied on every element of the DataSet. * @return The DataSink that writes the DataSet. * * @see TextOutputFormat * @see DataSet#writeAsText(String) Output files and directories */ public DataSink<String> writeAsFormattedText(String filePath, TextFormatter<T> formatter) { return map(new FormattingMapper<>(clean(formatter))).writeAsText(filePath); }
/** * Writes a DataSet as text file(s) to the specified location. * * <p>For each element of the DataSet the result of {@link TextFormatter#format(Object)} is written. * * @param filePath The path pointing to the location the text file is written to. * @param writeMode Control the behavior for existing files. Options are NO_OVERWRITE and OVERWRITE. * @param formatter formatter that is applied on every element of the DataSet. * @return The DataSink that writes the DataSet. * * @see TextOutputFormat * @see DataSet#writeAsText(String) Output files and directories */ public DataSink<String> writeAsFormattedText(String filePath, WriteMode writeMode, TextFormatter<T> formatter) { return map(new FormattingMapper<>(clean(formatter))).writeAsText(filePath, writeMode); }
/** * Writes a DataSet as text file(s) to the specified location. * * <p>For each element of the DataSet the result of {@link TextFormatter#format(Object)} is written. * * @param filePath The path pointing to the location the text file is written to. * @param formatter formatter that is applied on every element of the DataSet. * @return The DataSink that writes the DataSet. * * @see TextOutputFormat * @see DataSet#writeAsText(String) Output files and directories */ public DataSink<String> writeAsFormattedText(String filePath, TextFormatter<T> formatter) { return map(new FormattingMapper<>(clean(formatter))).writeAsText(filePath); }
/** * Writes a DataSet as text file(s) to the specified location. * * <p>For each element of the DataSet the result of {@link TextFormatter#format(Object)} is written. * * @param filePath The path pointing to the location the text file is written to. * @param formatter formatter that is applied on every element of the DataSet. * @return The DataSink that writes the DataSet. * * @see TextOutputFormat * @see DataSet#writeAsText(String) Output files and directories */ public DataSink<String> writeAsFormattedText(String filePath, TextFormatter<T> formatter) { return map(new FormattingMapper<>(clean(formatter))).writeAsText(filePath); }
/** * Writes a DataSet as text file(s) to the specified location. * * <p>For each element of the DataSet the result of {@link TextFormatter#format(Object)} is written. * * @param filePath The path pointing to the location the text file is written to. * @param writeMode Control the behavior for existing files. Options are NO_OVERWRITE and OVERWRITE. * @param formatter formatter that is applied on every element of the DataSet. * @return The DataSink that writes the DataSet. * * @see TextOutputFormat * @see DataSet#writeAsText(String) Output files and directories */ public DataSink<String> writeAsFormattedText(String filePath, WriteMode writeMode, TextFormatter<T> formatter) { return map(new FormattingMapper<>(clean(formatter))).writeAsText(filePath, writeMode); }
/** * Writes a DataSet as text file(s) to the specified location. * * <p>For each element of the DataSet the result of {@link TextFormatter#format(Object)} is written. * * @param filePath The path pointing to the location the text file is written to. * @param writeMode Control the behavior for existing files. Options are NO_OVERWRITE and OVERWRITE. * @param formatter formatter that is applied on every element of the DataSet. * @return The DataSink that writes the DataSet. * * @see TextOutputFormat * @see DataSet#writeAsText(String) Output files and directories */ public DataSink<String> writeAsFormattedText(String filePath, WriteMode writeMode, TextFormatter<T> formatter) { return map(new FormattingMapper<>(clean(formatter))).writeAsText(filePath, writeMode); }