Package io.pravega.connectors.flink
Class FlinkPravegaTableSource
- java.lang.Object
-
- io.pravega.connectors.flink.FlinkPravegaTableSource
-
- All Implemented Interfaces:
org.apache.flink.table.sources.BatchTableSource<org.apache.flink.types.Row>
,org.apache.flink.table.sources.DefinedProctimeAttribute
,org.apache.flink.table.sources.DefinedRowtimeAttributes
,org.apache.flink.table.sources.StreamTableSource<org.apache.flink.types.Row>
,org.apache.flink.table.sources.TableSource<org.apache.flink.types.Row>
@Deprecated public class FlinkPravegaTableSource extends java.lang.Object implements org.apache.flink.table.sources.StreamTableSource<org.apache.flink.types.Row>, org.apache.flink.table.sources.BatchTableSource<org.apache.flink.types.Row>, org.apache.flink.table.sources.DefinedProctimeAttribute, org.apache.flink.table.sources.DefinedRowtimeAttributes
Deprecated.Please use the new Table APIFlinkPravegaDynamicTableSource
ATableSource
to read Pravega streams using the Flink Table API. Supports both stream and batch environments.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
FlinkPravegaTableSource(java.util.function.Supplier<FlinkPravegaReader<org.apache.flink.types.Row>> sourceFunctionFactory, java.util.function.Supplier<FlinkPravegaInputFormat<org.apache.flink.types.Row>> inputFormatFactory, org.apache.flink.table.api.TableSchema schema)
Deprecated.Creates a PravegaTableSource
.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String
explainSource()
Deprecated.org.apache.flink.api.java.DataSet<org.apache.flink.types.Row>
getDataSet(org.apache.flink.api.java.ExecutionEnvironment env)
Deprecated.NOTE: This method is for internal use only for defining a TableSource.org.apache.flink.streaming.api.datastream.DataStream<org.apache.flink.types.Row>
getDataStream(org.apache.flink.streaming.api.environment.StreamExecutionEnvironment env)
Deprecated.NOTE: This method is for internal use only for defining a TableSource.java.lang.String
getProctimeAttribute()
Deprecated.org.apache.flink.table.types.DataType
getProducedDataType()
Deprecated.java.util.List<org.apache.flink.table.sources.RowtimeAttributeDescriptor>
getRowtimeAttributeDescriptors()
Deprecated.org.apache.flink.table.api.TableSchema
getTableSchema()
Deprecated.protected void
setProctimeAttribute(java.lang.String proctimeAttribute)
Deprecated.Declares a field of the schema to be the processing time attribute.protected void
setRowtimeAttributeDescriptors(java.util.List<org.apache.flink.table.sources.RowtimeAttributeDescriptor> rowtimeAttributeDescriptors)
Deprecated.Declares a list of fields to be rowtime attributes.
-
-
-
Constructor Detail
-
FlinkPravegaTableSource
protected FlinkPravegaTableSource(java.util.function.Supplier<FlinkPravegaReader<org.apache.flink.types.Row>> sourceFunctionFactory, java.util.function.Supplier<FlinkPravegaInputFormat<org.apache.flink.types.Row>> inputFormatFactory, org.apache.flink.table.api.TableSchema schema)
Deprecated.Creates a PravegaTableSource
.- Parameters:
sourceFunctionFactory
- a factory for theFlinkPravegaReader
to implementStreamTableSource
inputFormatFactory
- a factory for theFlinkPravegaInputFormat
to implementBatchTableSource
schema
- the table schema
-
-
Method Detail
-
getDataStream
public org.apache.flink.streaming.api.datastream.DataStream<org.apache.flink.types.Row> getDataStream(org.apache.flink.streaming.api.environment.StreamExecutionEnvironment env)
Deprecated.NOTE: This method is for internal use only for defining a TableSource. Do not use it in Table API programs.- Specified by:
getDataStream
in interfaceorg.apache.flink.table.sources.StreamTableSource<org.apache.flink.types.Row>
-
getDataSet
public org.apache.flink.api.java.DataSet<org.apache.flink.types.Row> getDataSet(org.apache.flink.api.java.ExecutionEnvironment env)
Deprecated.NOTE: This method is for internal use only for defining a TableSource. Do not use it in Table API programs.- Specified by:
getDataSet
in interfaceorg.apache.flink.table.sources.BatchTableSource<org.apache.flink.types.Row>
-
getProducedDataType
public org.apache.flink.table.types.DataType getProducedDataType()
Deprecated.- Specified by:
getProducedDataType
in interfaceorg.apache.flink.table.sources.TableSource<org.apache.flink.types.Row>
-
getTableSchema
public org.apache.flink.table.api.TableSchema getTableSchema()
Deprecated.- Specified by:
getTableSchema
in interfaceorg.apache.flink.table.sources.TableSource<org.apache.flink.types.Row>
-
getProctimeAttribute
public java.lang.String getProctimeAttribute()
Deprecated.- Specified by:
getProctimeAttribute
in interfaceorg.apache.flink.table.sources.DefinedProctimeAttribute
-
getRowtimeAttributeDescriptors
public java.util.List<org.apache.flink.table.sources.RowtimeAttributeDescriptor> getRowtimeAttributeDescriptors()
Deprecated.- Specified by:
getRowtimeAttributeDescriptors
in interfaceorg.apache.flink.table.sources.DefinedRowtimeAttributes
-
setProctimeAttribute
protected void setProctimeAttribute(java.lang.String proctimeAttribute)
Deprecated.Declares a field of the schema to be the processing time attribute.- Parameters:
proctimeAttribute
- The name of the field that becomes the processing time field.
-
setRowtimeAttributeDescriptors
protected void setRowtimeAttributeDescriptors(java.util.List<org.apache.flink.table.sources.RowtimeAttributeDescriptor> rowtimeAttributeDescriptors)
Deprecated.Declares a list of fields to be rowtime attributes.- Parameters:
rowtimeAttributeDescriptors
- The descriptors of the rowtime attributes.
-
explainSource
public java.lang.String explainSource()
Deprecated.- Specified by:
explainSource
in interfaceorg.apache.flink.table.sources.TableSource<org.apache.flink.types.Row>
-
-