Cause if it's accumulative, the bag doesn't need to be loaded in ram to be 
checked for emptiness. 

On Apr 11, 2012, at 10:55 AM, "Jonathan Coveney (Commented) (JIRA)" 
<j...@apache.org> wrote:

> 
>    [ 
> https://issues.apache.org/jira/browse/PIG-2065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13251787#comment-13251787
>  ] 
> 
> Jonathan Coveney commented on PIG-2065:
> ---------------------------------------
> 
> Why is this necessary? At least for DefaultDataBags, the size is simply a 
> known quantity, so you can check if "size == 0." Do you have another case in 
> mind?
> 
>> IsEmpty should be Accumulative
>> ------------------------------
>> 
>>                Key: PIG-2065
>>                URL: https://issues.apache.org/jira/browse/PIG-2065
>>            Project: Pig
>>         Issue Type: Improvement
>>           Reporter: Dmitriy V. Ryaboy
>> 
>> IsEmpty is trivial to implement as an accumulator. We should do that.
> 
> --
> This message is automatically generated by JIRA.
> If you think it was sent incorrectly, please contact your JIRA 
> administrators: 
> https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
> For more information on JIRA, see: http://www.atlassian.com/software/jira
> 
> 

Reply via email to