skipArgs()

The skipArgs() method is used to avoid passing the first N arguments of each data row to certain methods.

The skipArgs() method can be used to avoid passing arguments to the following methods:
  • evaluate() for a UDSF
  • processRow() for a UDTF
  • accumulate() for a UDAF
When the first N arguments contain large constant strings, such as configuration data or source code, that are not needed, using the skipArgs() method can improve the performance of a UDX.
Skipped arguments are passed to the following methods:
  • initialize() for all UDXs
  • calculateShape() for a UDTF

Example

-- do not pass the first two argument for each row
function skipArgs()
    return 2
end