Skip to content

Instantly share code, notes, and snippets.

@viksingh
Forked from SriniBlog/setGlobalParameter.java
Created February 9, 2018 01:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save viksingh/a5b327ab1d51295004f907833df25621 to your computer and use it in GitHub Desktop.
Save viksingh/a5b327ab1d51295004f907833df25621 to your computer and use it in GitHub Desktop.
This method can be used in UDF to write the parameter to GlobalContainer instance
public String setGlobalParameter(String Parameter, String ParameterValue, Container container) throws StreamTransformationException{
try{
GlobalContainer gc = container.getGlobalContainer();
gc.setParameter(Parameter, ParameterValue);
}catch(Exception ee){
}
return ParameterValue;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment