@PublicEvolving public class SpendReportTableSink extends Object implements AppendStreamTableSink<Row>, BatchTableSink<Row>
Constructor and Description |
---|
SpendReportTableSink() |
Modifier and Type | Method and Description |
---|---|
TableSink<Row> |
configure(String[] fieldNames,
TypeInformation<?>[] fieldTypes)
Returns a copy of this
TableSink configured with the field names and types of the
table to emit. |
void |
emitDataSet(DataSet<Row> dataSet)
Emits the DataSet.
|
void |
emitDataStream(DataStream<Row> dataStream)
Emits the DataStream.
|
DataType |
getConsumedDataType()
Returns the data type consumed by this
TableSink . |
String[] |
getFieldNames() |
TypeInformation<?>[] |
getFieldTypes() |
TableSchema |
getTableSchema()
Returns the schema of the consumed table.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
consumeDataStream
getOutputType
public void emitDataSet(DataSet<Row> dataSet)
BatchTableSink
emitDataSet
in interface BatchTableSink<Row>
public void emitDataStream(DataStream<Row> dataStream)
StreamTableSink
emitDataStream
in interface StreamTableSink<Row>
public TableSchema getTableSchema()
TableSink
getTableSchema
in interface TableSink<Row>
TableSchema
of the consumed table.public DataType getConsumedDataType()
TableSink
TableSink
.getConsumedDataType
in interface TableSink<Row>
TableSink
.public String[] getFieldNames()
getFieldNames
in interface TableSink<Row>
public TypeInformation<?>[] getFieldTypes()
getFieldTypes
in interface TableSink<Row>
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.