public final class SocketDynamicTableSource extends Object implements org.apache.flink.table.connector.source.ScanTableSource
SocketDynamicTableSource is used during planning.
In our example, we don't implement any of the available ability interfaces such as SupportsFilterPushDown
or SupportsProjectionPushDown. Therefore, the main logic can be found in ScanTableSource.getScanRuntimeProvider(ScanContext)
where we instantiate the required SourceFunction and its DeserializationSchema for
runtime. Both instances are parameterized to return internal data structures (i.e. RowData).
| 构造器和说明 |
|---|
SocketDynamicTableSource(String hostname,
int port,
byte byteDelimiter,
org.apache.flink.table.connector.format.DecodingFormat<org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData>> decodingFormat,
org.apache.flink.table.types.DataType producedDataType) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
asSummaryString() |
org.apache.flink.table.connector.source.DynamicTableSource |
copy() |
org.apache.flink.table.connector.ChangelogMode |
getChangelogMode() |
org.apache.flink.table.connector.source.ScanTableSource.ScanRuntimeProvider |
getScanRuntimeProvider(org.apache.flink.table.connector.source.ScanTableSource.ScanContext runtimeProviderContext) |
public SocketDynamicTableSource(String hostname, int port, byte byteDelimiter, org.apache.flink.table.connector.format.DecodingFormat<org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData>> decodingFormat, org.apache.flink.table.types.DataType producedDataType)
public org.apache.flink.table.connector.ChangelogMode getChangelogMode()
getChangelogMode 在接口中 org.apache.flink.table.connector.source.ScanTableSourcepublic org.apache.flink.table.connector.source.ScanTableSource.ScanRuntimeProvider getScanRuntimeProvider(org.apache.flink.table.connector.source.ScanTableSource.ScanContext runtimeProviderContext)
getScanRuntimeProvider 在接口中 org.apache.flink.table.connector.source.ScanTableSourcepublic org.apache.flink.table.connector.source.DynamicTableSource copy()
copy 在接口中 org.apache.flink.table.connector.source.DynamicTableSourcepublic String asSummaryString()
asSummaryString 在接口中 org.apache.flink.table.connector.source.DynamicTableSourceCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.