use of com.qlangtech.tis.plugin.incr.TISSinkFactory 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;
}
use of com.qlangtech.tis.plugin.incr.TISSinkFactory in project plugins by qlangtech.
the class DefaultDataxProcessor method writerPluginOverwrite.
private <T> T writerPluginOverwrite(Function<IStreamIncrGenerateStrategy, T> func) {
TISSinkFactory sinKFactory = TISSinkFactory.getIncrSinKFactory(this.identityValue());
Objects.requireNonNull(sinKFactory, "writer plugin can not be null");
if (sinKFactory instanceof IStreamIncrGenerateStrategy) {
return func.apply(((IStreamIncrGenerateStrategy) sinKFactory));
}
return func.apply(this);
}
Aggregations