| Package | Description |
|---|---|
| org.apache.flink.api.java | |
| org.apache.flink.api.java.io | |
| org.apache.flink.api.java.operators |
| Modifier and Type | Method and Description |
|---|---|
DataSink<T> |
DataSet.output(OutputFormat<T> outputFormat)
Emits a DataSet using an
OutputFormat. |
DataSink<T> |
DataSet.print()
Writes a DataSet to the standard output stream (stdout).
For each element of the DataSet the result of Object.toString() is written. |
DataSink<T> |
DataSet.printToErr()
Writes a DataSet to the standard error stream (stderr).
For each element of the DataSet the result of Object.toString() is written. |
DataSink<T> |
DataSet.write(FileOutputFormat<T> outputFormat,
String filePath)
Writes a DataSet using a
FileOutputFormat to a specified location. |
DataSink<T> |
DataSet.write(FileOutputFormat<T> outputFormat,
String filePath,
FileSystem.WriteMode writeMode)
Writes a DataSet using a
FileOutputFormat to a specified location. |
DataSink<T> |
DataSet.writeAsCsv(String filePath)
Writes a
Tuple DataSet as a CSV file to the specified location.Note: Only a Tuple DataSet can written as a CSV file. For each Tuple field the result of Object.toString() is written. |
DataSink<T> |
DataSet.writeAsCsv(String filePath,
FileSystem.WriteMode writeMode)
Writes a
Tuple DataSet as a CSV file to the specified location.Note: Only a Tuple DataSet can written as a CSV file. For each Tuple field the result of Object.toString() is written. |
DataSink<T> |
DataSet.writeAsCsv(String filePath,
String rowDelimiter,
String fieldDelimiter)
Writes a
Tuple DataSet as a CSV file to the specified location with the specified field and line delimiters.Note: Only a Tuple DataSet can written as a CSV file. For each Tuple field the result of Object.toString() is written. |
DataSink<T> |
DataSet.writeAsCsv(String filePath,
String rowDelimiter,
String fieldDelimiter,
FileSystem.WriteMode writeMode)
Writes a
Tuple DataSet as a CSV file to the specified location with the specified field and line delimiters.Note: Only a Tuple DataSet can written as a CSV file. For each Tuple field the result of Object.toString() is written. |
DataSink<String> |
DataSet.writeAsFormattedText(String filePath,
FileSystem.WriteMode writeMode,
TextOutputFormat.TextFormatter<T> formatter)
Writes a DataSet as a text file to the specified location.
For each element of the DataSet the result of TextOutputFormat.TextFormatter.format(Object) is written. |
DataSink<String> |
DataSet.writeAsFormattedText(String filePath,
TextOutputFormat.TextFormatter<T> formatter)
Writes a DataSet as a text file to the specified location.
For each element of the DataSet the result of TextOutputFormat.TextFormatter.format(Object) is written. |
DataSink<T> |
DataSet.writeAsText(String filePath)
Writes a DataSet as a text file to the specified location.
For each element of the DataSet the result of Object.toString() is written. |
DataSink<T> |
DataSet.writeAsText(String filePath,
FileSystem.WriteMode writeMode)
Writes a DataSet as a text file to the specified location.
For each element of the DataSet the result of Object.toString() is written. |
| Modifier and Type | Method and Description |
|---|---|
static <T> DataSink<T> |
RemoteCollectorImpl.collectLocal(DataSet<T> source,
RemoteCollectorConsumer<T> consumer)
Writes a DataSet to a
RemoteCollectorConsumer through an
RemoteCollector remotely called from the
RemoteCollectorOutputFormat. |
| Modifier and Type | Method and Description |
|---|---|
DataSink<T> |
DataSink.name(String name) |
DataSink<T> |
DataSink.setParallelism(int dop)
Sets the degree of parallelism for this data sink.
|
DataSink<T> |
DataSink.withParameters(Configuration parameters)
Pass a configuration to the OutputFormat
|
| Modifier and Type | Method and Description |
|---|---|
JavaPlan |
OperatorTranslation.translateToPlan(List<DataSink<?>> sinks,
String jobName) |
Copyright © 2015 The Apache Software Foundation. All rights reserved.