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).
| Constructor and Description |
|---|
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) |
| Modifier and Type | Method and Description |
|---|---|
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 in interface 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 in interface org.apache.flink.table.connector.source.ScanTableSourcepublic org.apache.flink.table.connector.source.DynamicTableSource copy()
copy in interface org.apache.flink.table.connector.source.DynamicTableSourcepublic String asSummaryString()
asSummaryString in interface org.apache.flink.table.connector.source.DynamicTableSourceCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.