| 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(org.apache.flink.api.common.io.OutputFormat<T> outputFormat)
Emits a DataSet using an
OutputFormat. |
DataSink<T> |
DataSet.print(String sinkIdentifier)
Deprecated.
Use
DataSet.printOnTaskManager(String) instead. |
DataSink<T> |
DataSet.printOnTaskManager(String prefix)
Writes a DataSet to the standard output streams (stdout) of the TaskManagers that execute
the program (or more specifically, the data sink operators).
|
DataSink<T> |
DataSet.printToErr(String sinkIdentifier)
Deprecated.
Use
DataSet.printOnTaskManager(String) instead, othe
PrintingOutputFormat instead. |
DataSink<T> |
DataSet.write(org.apache.flink.api.common.io.FileOutputFormat<T> outputFormat,
String filePath)
Writes a DataSet using a
FileOutputFormat to a specified location. |
DataSink<T> |
DataSet.write(org.apache.flink.api.common.io.FileOutputFormat<T> outputFormat,
String filePath,
org.apache.flink.core.fs.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,
org.apache.flink.core.fs.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,
org.apache.flink.core.fs.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,
org.apache.flink.core.fs.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,
org.apache.flink.core.fs.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 parallelism)
Sets the parallelism for this data sink.
|
DataSink<T> |
DataSink.sortLocalOutput(int field,
org.apache.flink.api.common.operators.Order order)
Sorts each local partition of a
Tuple data set
on the specified field in the specified Order before it is emitted by the output format.
Note: Only tuple data sets can be sorted using integer field indices.The tuple data set can be sorted on multiple fields in different orders by chaining sortLocalOutput(int, Order) calls. |
DataSink<T> |
DataSink.sortLocalOutput(String fieldExpression,
org.apache.flink.api.common.operators.Order order)
Sorts each local partition of a data set on the field(s) specified by the field expression
in the specified
Order before it is emitted by the output format.
Note: Non-composite types can only be sorted on the full element which is specified by
a wildcard expression ("*" or "_").Data sets of composite types (Tuple or Pojo) can be sorted on multiple fields in different orders by chaining sortLocalOutput(String, Order) calls. |
DataSink<T> |
DataSink.withParameters(org.apache.flink.configuration.Configuration parameters)
Pass a configuration to the OutputFormat
|
| Modifier and Type | Method and Description |
|---|---|
JavaPlan |
OperatorTranslation.translateToPlan(List<DataSink<?>> sinks,
String jobName) |
Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.