@PublicEvolving public class UnboundedTransactionTableSource extends Object implements StreamTableSource<Row>, DefinedRowtimeAttributes
This table could be backed by a message queue or other streaming data source.
Constructor and Description |
---|
UnboundedTransactionTableSource() |
Modifier and Type | Method and Description |
---|---|
DataStream<Row> |
getDataStream(StreamExecutionEnvironment execEnv)
Returns the data of the table as a
DataStream . |
DataType |
getProducedDataType()
Returns the
DataType for the produced data of the TableSource . |
List<RowtimeAttributeDescriptor> |
getRowtimeAttributeDescriptors()
Returns a list of
RowtimeAttributeDescriptor for all rowtime
attributes of the table. |
TableSchema |
getTableSchema()
Returns the schema of the produced table.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isBounded
explainSource, getReturnType
public DataStream<Row> getDataStream(StreamExecutionEnvironment execEnv)
StreamTableSource
DataStream
.
NOTE: This method is for internal use only for defining a TableSource
.
Do not use it in Table API programs.
getDataStream
in interface StreamTableSource<Row>
public DataType getProducedDataType()
TableSource
DataType
for the produced data of the TableSource
.getProducedDataType
in interface TableSource<Row>
DataSet
or DataStream
.public TableSchema getTableSchema()
TableSource
getTableSchema
in interface TableSource<Row>
TableSchema
of the produced table.public List<RowtimeAttributeDescriptor> getRowtimeAttributeDescriptors()
DefinedRowtimeAttributes
RowtimeAttributeDescriptor
for all rowtime
attributes of the table.
All referenced attributes must be present in the TableSchema
of the TableSource
and of type Types.SQL_TIMESTAMP
.
getRowtimeAttributeDescriptors
in interface DefinedRowtimeAttributes
RowtimeAttributeDescriptor
.Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.