public class IsNumeric
This UDF is used to check if a String is numeric. Note this UDF is different
from IsInt in 2 ways, 1. Does not check for Integer range 2. Runs faster as
this UDF uses Regex match and not Integer.parseInt(String)
This UDF is expected to perform slightly better than isInt, isLong, isFloat,
isDouble. However, primary goal of this UDF is NOT performance but rather to
check "numeric"-ness of a String. Use this UDF if you do not care for the
type (int, long, float, double) and would just like to check if its numeric
It does NOT check for Range of int, long, double, parse. This function will
return true when the String is larger than the range of any numeric data type
(int, long, double, float). Use specific functions (IsInt, IsFloat, IsLong,
IsDouble) if range is important.
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.pig.EvalFunc
This callback method must be implemented by all subclasses. This
is the method that will be invoked on every Tuple of a given dataset.
Since the dataset may be divided up in a variety of ways the programmer
should not make assumptions about state that is maintained between
invocations of this method.