getState()
The getState() method defines the types of the state variables used by the UDA.
The state variables are passed in to each call of an initState(), accumulate(), merge(), and finalResult() method. The format of the table returned by the getState() method is identical to that of the getArgs() and getShape() methods.
Example
function getState()
statevars={}
statevars[1] = { "count", integer }
statevars[2] = { "sum", double }
return statevars
end