public class CollectBatchTableSink
extends org.apache.flink.table.sinks.OutputFormatTableSink<org.apache.flink.types.Row>
implements org.apache.flink.table.sinks.BatchTableSink<org.apache.flink.types.Row>
| Constructor and Description |
|---|
CollectBatchTableSink(String accumulatorName,
org.apache.flink.api.common.typeutils.TypeSerializer<org.apache.flink.types.Row> serializer,
org.apache.flink.table.api.TableSchema tableSchema) |
| Modifier and Type | Method and Description |
|---|---|
CollectBatchTableSink |
configure(String[] fieldNames,
org.apache.flink.api.common.typeinfo.TypeInformation<?>[] fieldTypes) |
void |
emitDataSet(org.apache.flink.api.java.DataSet<org.apache.flink.types.Row> dataSet) |
org.apache.flink.table.types.DataType |
getConsumedDataType() |
org.apache.flink.api.common.io.OutputFormat<org.apache.flink.types.Row> |
getOutputFormat() |
org.apache.flink.api.common.typeutils.TypeSerializer<org.apache.flink.types.Row> |
getSerializer()
Returns the serializer for deserializing the collected result.
|
org.apache.flink.table.api.TableSchema |
getTableSchema() |
consumeDataStream, emitDataStreampublic CollectBatchTableSink(String accumulatorName, org.apache.flink.api.common.typeutils.TypeSerializer<org.apache.flink.types.Row> serializer, org.apache.flink.table.api.TableSchema tableSchema)
public org.apache.flink.api.common.typeutils.TypeSerializer<org.apache.flink.types.Row> getSerializer()
public org.apache.flink.table.types.DataType getConsumedDataType()
getConsumedDataType in interface org.apache.flink.table.sinks.TableSink<org.apache.flink.types.Row>public org.apache.flink.table.api.TableSchema getTableSchema()
getTableSchema in interface org.apache.flink.table.sinks.TableSink<org.apache.flink.types.Row>public CollectBatchTableSink configure(String[] fieldNames, org.apache.flink.api.common.typeinfo.TypeInformation<?>[] fieldTypes)
configure in interface org.apache.flink.table.sinks.TableSink<org.apache.flink.types.Row>public void emitDataSet(org.apache.flink.api.java.DataSet<org.apache.flink.types.Row> dataSet)
emitDataSet in interface org.apache.flink.table.sinks.BatchTableSink<org.apache.flink.types.Row>public org.apache.flink.api.common.io.OutputFormat<org.apache.flink.types.Row> getOutputFormat()
getOutputFormat in class org.apache.flink.table.sinks.OutputFormatTableSink<org.apache.flink.types.Row>Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.