public class HiveBatchAndStreamTableSink extends Object implements org.apache.flink.table.sinks.AppendStreamTableSink, org.apache.flink.table.sinks.PartitionableTableSink, org.apache.flink.table.sinks.OverwritableTableSink
Constructor and Description |
---|
HiveBatchAndStreamTableSink(boolean userMrWriter,
boolean isBounded,
org.apache.hadoop.mapred.JobConf jobConf,
org.apache.flink.table.catalog.ObjectIdentifier identifier,
org.apache.flink.table.catalog.CatalogTable table) |
Modifier and Type | Method and Description |
---|---|
org.apache.flink.table.sinks.TableSink |
configure(String[] fieldNames,
org.apache.flink.api.common.typeinfo.TypeInformation[] fieldTypes) |
boolean |
configurePartitionGrouping(boolean supportsGrouping) |
org.apache.flink.streaming.api.datastream.DataStreamSink |
consumeDataStream(org.apache.flink.streaming.api.datastream.DataStream dataStream) |
org.apache.flink.table.types.DataType |
getConsumedDataType() |
org.apache.flink.table.filesystem.FileSystemOutputFormat<org.apache.flink.types.Row> |
getOutputFormat() |
org.apache.flink.table.api.TableSchema |
getTableSchema() |
void |
setOverwrite(boolean overwrite) |
void |
setStaticPartition(Map<String,String> partitionSpec) |
public HiveBatchAndStreamTableSink(boolean userMrWriter, boolean isBounded, org.apache.hadoop.mapred.JobConf jobConf, org.apache.flink.table.catalog.ObjectIdentifier identifier, org.apache.flink.table.catalog.CatalogTable table)
public org.apache.flink.table.filesystem.FileSystemOutputFormat<org.apache.flink.types.Row> getOutputFormat()
public final org.apache.flink.streaming.api.datastream.DataStreamSink consumeDataStream(org.apache.flink.streaming.api.datastream.DataStream dataStream)
consumeDataStream
in interface org.apache.flink.table.sinks.StreamTableSink
public org.apache.flink.table.types.DataType getConsumedDataType()
getConsumedDataType
in interface org.apache.flink.table.sinks.TableSink
public org.apache.flink.table.api.TableSchema getTableSchema()
getTableSchema
in interface org.apache.flink.table.sinks.TableSink
public org.apache.flink.table.sinks.TableSink configure(String[] fieldNames, org.apache.flink.api.common.typeinfo.TypeInformation[] fieldTypes)
configure
in interface org.apache.flink.table.sinks.TableSink
public boolean configurePartitionGrouping(boolean supportsGrouping)
configurePartitionGrouping
in interface org.apache.flink.table.sinks.PartitionableTableSink
public void setStaticPartition(Map<String,String> partitionSpec)
setStaticPartition
in interface org.apache.flink.table.sinks.PartitionableTableSink
public void setOverwrite(boolean overwrite)
setOverwrite
in interface org.apache.flink.table.sinks.OverwritableTableSink
Copyright © 2021 Alibaba Group. All rights reserved.