FileSink. It is kept only to
support tests for the legacy connector stack.@Internal @Deprecated public class CsvTableSink extends Object implements AppendStreamTableSink<org.apache.flink.types.Row>
TableSink to emit data as CSV files.| 限定符和类型 | 类和说明 |
|---|---|
static class |
CsvTableSink.CsvFormatter
已过时。
Formats a Row into a String with fields separated by the field delimiter.
|
| 构造器和说明 |
|---|
CsvTableSink(String path)
已过时。
A simple
TableSink to emit data as CSV files using comma as field delimiter, with
default parallelism and write mode. |
CsvTableSink(String path,
String fieldDelim)
已过时。
A simple
TableSink to emit data as CSV files, with default parallelism and write
mode. |
CsvTableSink(String path,
String fieldDelim,
int numFiles,
org.apache.flink.core.fs.FileSystem.WriteMode writeMode)
已过时。
A simple
TableSink to emit data as CSV files. |
CsvTableSink(String path,
String fieldDelim,
int numFiles,
org.apache.flink.core.fs.FileSystem.WriteMode writeMode,
String[] fieldNames,
org.apache.flink.table.types.DataType[] fieldTypes)
已过时。
A simple
TableSink to emit data as CSV files. |
| 限定符和类型 | 方法和说明 |
|---|---|
org.apache.flink.table.sinks.TableSink<org.apache.flink.types.Row> |
configure(String[] fieldNames,
org.apache.flink.api.common.typeinfo.TypeInformation<?>[] fieldTypes)
已过时。
|
org.apache.flink.streaming.api.datastream.DataStreamSink<?> |
consumeDataStream(org.apache.flink.streaming.api.datastream.DataStream<org.apache.flink.types.Row> dataStream)
已过时。
Consumes the DataStream and return the sink transformation
DataStreamSink. |
org.apache.flink.table.types.DataType |
getConsumedDataType()
已过时。
|
org.apache.flink.table.api.TableSchema |
getTableSchema()
已过时。
|
public CsvTableSink(String path, String fieldDelim, int numFiles, org.apache.flink.core.fs.FileSystem.WriteMode writeMode, String[] fieldNames, org.apache.flink.table.types.DataType[] fieldTypes)
TableSink to emit data as CSV files.path - The output path to write the Table to.fieldDelim - The field delimiternumFiles - The number of files to write towriteMode - The write mode to specify whether existing files are overwritten or not.fieldNames - The field names of the table to emit.fieldTypes - The field types of the table to emit.public CsvTableSink(String path, String fieldDelim, int numFiles, org.apache.flink.core.fs.FileSystem.WriteMode writeMode)
TableSink to emit data as CSV files.path - The output path to write the Table to.fieldDelim - The field delimiternumFiles - The number of files to write towriteMode - The write mode to specify whether existing files are overwritten or not.public CsvTableSink(String path)
TableSink to emit data as CSV files using comma as field delimiter, with
default parallelism and write mode.path - The output path to write the Table to.public org.apache.flink.streaming.api.datastream.DataStreamSink<?> consumeDataStream(org.apache.flink.streaming.api.datastream.DataStream<org.apache.flink.types.Row> dataStream)
StreamTableSinkDataStreamSink. The
returned DataStreamSink will be used to set resources for the sink operator.consumeDataStream 在接口中 StreamTableSink<org.apache.flink.types.Row>public org.apache.flink.table.sinks.TableSink<org.apache.flink.types.Row> configure(String[] fieldNames, org.apache.flink.api.common.typeinfo.TypeInformation<?>[] fieldTypes)
configure 在接口中 org.apache.flink.table.sinks.TableSink<org.apache.flink.types.Row>public org.apache.flink.table.types.DataType getConsumedDataType()
getConsumedDataType 在接口中 org.apache.flink.table.sinks.TableSink<org.apache.flink.types.Row>public org.apache.flink.table.api.TableSchema getTableSchema()
getTableSchema 在接口中 org.apache.flink.table.sinks.TableSink<org.apache.flink.types.Row>Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.