Prashant Kommireddi created PIG-4567:
----------------------------------------
Summary: Allow UDFs to specify a counter increment other than
default of 1
Key: PIG-4567
URL: https://issues.apache.org/jira/browse/PIG-4567
Project: Pig
Issue Type: Improvement
Affects Versions: 0.15.0
Reporter: Prashant Kommireddi
Fix For: 0.15.0
Current APIs (EvalFunc, LoadFunc and StoreFunc) have a default *warn* method to
report counters which increments by 1.
{code}
public final void warn(String msg, Enum warningEnum)
{code}
It would be more flexible to have an additional method that takes in an
argument to increment the counter by.
{code}
public final void warn(String msg, Enum warningEnum, long incr)
{code}
This will be useful when you might have, for instance, several fields within
the same row that are bad and you want the counter to reflect that. Making
repetitive "warn" calls is not ideal.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)