Thursday, 15 February 2018

Code Snippet to clear Talend Hash Components


Instantiate thashinput: 

org.talend.designer.components.hashfile.common.MapHashFile mf_tHashInput_2 = org.talend.designer.components.hashfile.common.MapHashFile.getMapHashFile();


Clear the Cache based on PID:

mf_tHashInput_2.clearCache("tHashFile_"+jobName+"_" + pid + "_tHashOutput_1");
mf_tHashInput_2.clearCache("tHashFile_"+jobName+"_" + pid + "_tHashOutput_10");

mf_tHashInput_2.clearCache("tHashFile_"+jobName+"_" + pid + "_tHashOutput_2");
mf_tHashInput_2.clearCache("tHashFile_"+jobName+"_" + pid + "_tHashOutput_23");
mf_tHashInput_2.clearCache("tHashFile_"+jobName+"_" + pid + "_tHashOutput_24");
mf_tHashInput_2.clearCache("tHashFile_"+jobName+"_" + pid + "_tHashOutput_25");
mf_tHashInput_2.clearCache("tHashFile_"+jobName+"_" + pid + "_tHashOutput_26");
mf_tHashInput_2.clearCache("tHashFile_"+jobName+"_" + pid + "_tHashOutput_27");
mf_tHashInput_2.clearCache("tHashFile_"+jobName+"_" + pid + "_tHashOutput_28");
mf_tHashInput_2.clearCache("tHashFile_"+jobName+"_" + pid + "_tHashOutput_29");

No comments:

Post a Comment