UDF can process multiple arguments. You just want to define the function
signature in that way.

For example,

evaluate(String s1, String s2, boolean t)


On Thu, Oct 18, 2012 at 11:36 PM, Chris Gong <fellowt...@163.com> wrote:

> **
> i find that UDF can only process one argument like
>    public long evaluate(String ip) {
>
>   }
>
> can i define a udf like  COALESCE(T v1, T v2, …) or  if(boolean
> testCondition, T valueTrue, T valueFalseOrNull)?
>
> ------------------------------
> Chris Gong
>



-- 
Chen Song

Reply via email to