Search in sources :

Example 1 with TestBasicFlinkSourceHandle

use of com.qlangtech.plugins.incr.flink.cdc.source.TestBasicFlinkSourceHandle in project plugins by qlangtech.

the class CUDCDCTestSuit method createConsumerHandle.

protected IResultRows createConsumerHandle(String tabName) {
    TestBasicFlinkSourceHandle sourceHandle = new TestBasicFlinkSourceHandle(tabName);
    TISSinkFactory sinkFuncFactory = new TISSinkFactory() {

        @Override
        public Map<IDataxProcessor.TableAlias, SinkFunction<DTO>> createSinkFunction(IDataxProcessor dataxProcessor) {
            return Collections.emptyMap();
        }
    };
    sourceHandle.setSinkFuncFactory(sinkFuncFactory);
    return sourceHandle;
}
Also used : TISSinkFactory(com.qlangtech.tis.plugin.incr.TISSinkFactory) SinkFunction(org.apache.flink.streaming.api.functions.sink.SinkFunction) TestBasicFlinkSourceHandle(com.qlangtech.plugins.incr.flink.cdc.source.TestBasicFlinkSourceHandle) IDataxProcessor(com.qlangtech.tis.datax.IDataxProcessor)

Aggregations

TestBasicFlinkSourceHandle (com.qlangtech.plugins.incr.flink.cdc.source.TestBasicFlinkSourceHandle)1 IDataxProcessor (com.qlangtech.tis.datax.IDataxProcessor)1 TISSinkFactory (com.qlangtech.tis.plugin.incr.TISSinkFactory)1 SinkFunction (org.apache.flink.streaming.api.functions.sink.SinkFunction)1