Class CanalJsonDecodingFormat
- java.lang.Object
-
- org.apache.flink.formats.json.canal.CanalJsonDecodingFormat
-
- All Implemented Interfaces:
org.apache.flink.table.connector.format.DecodingFormat<org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData>>,org.apache.flink.table.connector.format.Format,org.apache.flink.table.connector.format.ProjectableDecodingFormat<org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData>>
public class CanalJsonDecodingFormat extends Object implements org.apache.flink.table.connector.format.ProjectableDecodingFormat<org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData>>
DecodingFormatfor Canal using JSON encoding.
-
-
Constructor Summary
Constructors Constructor Description CanalJsonDecodingFormat(String database, String table, boolean ignoreParseErrors, org.apache.flink.formats.common.TimestampFormat timestampFormat)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyReadableMetadata(List<String> metadataKeys)org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData>createRuntimeDecoder(org.apache.flink.table.connector.source.DynamicTableSource.Context context, org.apache.flink.table.types.DataType physicalDataType, int[][] projections)org.apache.flink.table.connector.ChangelogModegetChangelogMode()Map<String,org.apache.flink.table.types.DataType>listReadableMetadata()
-
-
-
Method Detail
-
createRuntimeDecoder
public org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData> createRuntimeDecoder(org.apache.flink.table.connector.source.DynamicTableSource.Context context, org.apache.flink.table.types.DataType physicalDataType, int[][] projections)- Specified by:
createRuntimeDecoderin interfaceorg.apache.flink.table.connector.format.ProjectableDecodingFormat<org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData>>
-
listReadableMetadata
public Map<String,org.apache.flink.table.types.DataType> listReadableMetadata()
- Specified by:
listReadableMetadatain interfaceorg.apache.flink.table.connector.format.DecodingFormat<org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData>>
-
applyReadableMetadata
public void applyReadableMetadata(List<String> metadataKeys)
- Specified by:
applyReadableMetadatain interfaceorg.apache.flink.table.connector.format.DecodingFormat<org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData>>
-
getChangelogMode
public org.apache.flink.table.connector.ChangelogMode getChangelogMode()
- Specified by:
getChangelogModein interfaceorg.apache.flink.table.connector.format.Format
-
-