Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hey,
Is there anyway to iterate column names ?
Basically I want to parse this code into talend. As you can see fieldName is a variable who goes through column names and when it is compliant it parses its value into r variable.
if (fieldName.equalsIgnoreCase("ip")) {
r = fieldValue;
}
else if (fieldName.indexOf("submask")>=0 ) {
r = fieldValue;
}
else if (fieldName.indexOf("mac" ) >=0){
r= fieldValue;
}
Please help me. Thanks a lot
Thanks for your quick response.
This is only what i have. If it doesnt help, its ok . I create a tfileinputdelimited with the column names ip, submask and mac but I dont know how to make the search with the column names in order to parse the column's value into r.