Arun,
There will be no performance issue. Try below code (200 if conditions)
public String udf_myLookup(String in, Container container) throws StreamTransformationException{ if (in.equals("ABC")) return "0001"; if (in.equals("DEF")) return "0001"; if (in.equals("GHI")) return "0002"; return in; }