Hi,

I am using a static HashMap in EvalUDF which needs configuration, so I am
initializing it in exec method checking if it is null


    @Override
    public String exec(Tuple input) throws IOException {
              if(dict== null){

dict=MyDictionary.getInstance(UDFContext.getUDFContext().getJobConf());
         }
    // Other piece of code here

   }

Now, in the getInstance method, do I have to take care of any thread
synchronization issues? Is there a chance that multiple threads access it?

Thanks,
-Rohini

Reply via email to