-
-
Save viksingh/e111f734c215827843c09718391ae1e9 to your computer and use it in GitHub Desktop.
This Advanced UDF use to split the field value based on the splitter character
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void splitValue(String FieldValue, String SplitterChar, ResultList result, Container container) throws StreamTransformationException{ | |
try{ | |
//Split the string value based on the splitterchar | |
String [ ] strArray = FieldValue.split(SplitterChar); | |
int istrArray = strArray.length; | |
for (int i=0; i < istrArray; i++){ | |
result.addValue(strArray[i]); | |
} | |
}catch(Exception ee){ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment