Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hive >> mail # user >> Does hive instantiate new udf object for each record


Copy link to this message
-
Re: Does hive instantiate new udf object for each record
Actually it should be more like:

*    public Text evaluate (String s) {        if(t==null) {
t=new Text("initialization");        }        else {
t.set(s.getBytes());        }        return t;    }*
Your trying to avoid new if possible.
On Tue, Mar 25, 2014 at 9:09 PM, sky88088 <[EMAIL PROTECTED]> wrote: