Skip to content

Instantly share code, notes, and snippets.

@SriniBlog
Created December 23, 2015 08:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save SriniBlog/17849d9e70746d59b734 to your computer and use it in GitHub Desktop.
Save SriniBlog/17849d9e70746d59b734 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