Class RowDataTiKVEventDeserializationSchemaBase

    • Field Detail

      • tableInfo

        protected org.tikv.common.meta.TiTableInfo tableInfo
        Information of the TiKV table. *
      • physicalConverter

        protected final TiKVDeserializationRuntimeConverter physicalConverter
        Runtime converter that converts Tikv Kvrpcpb.KvPairs into RowData consisted of physical column values.
    • Constructor Detail

      • RowDataTiKVEventDeserializationSchemaBase

        public RowDataTiKVEventDeserializationSchemaBase​(org.tikv.common.TiConfiguration tiConf,
                                                         String database,
                                                         String tableName,
                                                         TiKVMetadataConverter[] metadataConverters,
                                                         org.apache.flink.table.types.logical.RowType physicalDataType)
    • Method Detail

      • fetchTableInfo

        protected org.tikv.common.meta.TiTableInfo fetchTableInfo()
      • emit

        public void emit​(TiKVMetadataConverter.TiKVRowValue inRecord,
                         org.apache.flink.table.data.RowData physicalRow,
                         org.apache.flink.util.Collector<org.apache.flink.table.data.RowData> collector)
      • createConverter

        protected static TiKVDeserializationRuntimeConverter createConverter​(org.apache.flink.table.types.logical.LogicalType type)
        Creates a runtime converter which is null safe.
      • createNotNullConverter

        public static TiKVDeserializationRuntimeConverter createNotNullConverter​(org.apache.flink.table.types.logical.LogicalType type)
        Creates a runtime converter which assuming input object is not null.
      • dealUnsignedColumnValue

        public static Object dealUnsignedColumnValue​(org.tikv.common.types.DataType dataType,
                                                     Object object)
        Deal with unsigned column's value.