Hi experts,
Iam using an UDF to check whether values for any of the fields in any of the records are missing. If so i have to skip perticular record. UDF is allowing the records which are without any missing values. But whenever a field with a missing comes its raising exception.
The code Iam using in UDF is
//write your code here
boolean flag = false;
for(int i=0;i<a.length;i++)
{
String temp[] = a<i>.split(" ");
for(int cnt=0;cnt<temp.length;cnt++)
{
if(!(temp[cnt].equals( null )))
{
flag = true;
}else
flag = false;
if(flag = true)
result.addValue(a<i>);
} }
If the flag is false I want it to skip that record and continue with next one.
Thanks&Regards,
Reyaz.