You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Bill Graham (Created) (JIRA)" <ji...@apache.org> on 2012/02/16 22:38:59 UTC

[jira] [Created] (PIG-2538) Add helper wrapper classes for StoreFunc

Add helper wrapper classes for StoreFunc
----------------------------------------

                 Key: PIG-2538
                 URL: https://issues.apache.org/jira/browse/PIG-2538
             Project: Pig
          Issue Type: Improvement
            Reporter: Bill Graham
            Assignee: Bill Graham


We find ourselves wrapping {{StoreFuncs}} often and have written a {{StoreFuncDecorator}} and a {{StoreMetadataDecorator}} class. These make it easy to subclass and decorate only select {{StoreFuncs}} methods.

This is conceptually similar to the wrapper helpers in the Java servlet API: 
http://docs.oracle.com/javaee/5/api/javax/servlet/ServletRequestWrapper.html
http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponseWrapper.html

I think these would make useful additions to Pig.

--
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

        

[jira] [Updated] (PIG-2538) Add helper wrapper classes for StoreFunc

Posted by "Bill Graham (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-2538?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bill Graham updated PIG-2538:
-----------------------------

    Status: Patch Available  (was: Open)
    
> Add helper wrapper classes for StoreFunc
> ----------------------------------------
>
>                 Key: PIG-2538
>                 URL: https://issues.apache.org/jira/browse/PIG-2538
>             Project: Pig
>          Issue Type: Improvement
>            Reporter: Bill Graham
>            Assignee: Bill Graham
>         Attachments: PIG_2538-1.patch
>
>
> We find ourselves wrapping {{StoreFuncs}} often and have written a {{StoreFuncDecorator}} and a {{StoreMetadataDecorator}} class. These make it easy to subclass and decorate only select {{StoreFuncs}} methods.
> This is conceptually similar to the wrapper helpers in the Java servlet API: 
> http://docs.oracle.com/javaee/5/api/javax/servlet/ServletRequestWrapper.html
> http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponseWrapper.html
> I think these would make useful additions to Pig.

--
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

        

[jira] [Updated] (PIG-2538) Add helper wrapper classes for StoreFunc

Posted by "Bill Graham (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-2538?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bill Graham updated PIG-2538:
-----------------------------

    Attachment: PIG_2538-1.patch

Here's a first pass.
                
> Add helper wrapper classes for StoreFunc
> ----------------------------------------
>
>                 Key: PIG-2538
>                 URL: https://issues.apache.org/jira/browse/PIG-2538
>             Project: Pig
>          Issue Type: Improvement
>            Reporter: Bill Graham
>            Assignee: Bill Graham
>         Attachments: PIG_2538-1.patch
>
>
> We find ourselves wrapping {{StoreFuncs}} often and have written a {{StoreFuncDecorator}} and a {{StoreMetadataDecorator}} class. These make it easy to subclass and decorate only select {{StoreFuncs}} methods.
> This is conceptually similar to the wrapper helpers in the Java servlet API: 
> http://docs.oracle.com/javaee/5/api/javax/servlet/ServletRequestWrapper.html
> http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponseWrapper.html
> I think these would make useful additions to Pig.

--
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

        

[jira] [Commented] (PIG-2538) Add helper wrapper classes for StoreFunc

Posted by "Dmitriy V. Ryaboy (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIG-2538?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13210453#comment-13210453 ] 

Dmitriy V. Ryaboy commented on PIG-2538:
----------------------------------------

This looks good. I'll commit to trunk if tests pass.
                
> Add helper wrapper classes for StoreFunc
> ----------------------------------------
>
>                 Key: PIG-2538
>                 URL: https://issues.apache.org/jira/browse/PIG-2538
>             Project: Pig
>          Issue Type: Improvement
>            Reporter: Bill Graham
>            Assignee: Bill Graham
>         Attachments: PIG_2538-1.patch
>
>
> We find ourselves wrapping {{StoreFuncs}} often and have written a {{StoreFuncDecorator}} and a {{StoreMetadataDecorator}} class. These make it easy to subclass and decorate only select {{StoreFuncs}} methods.
> This is conceptually similar to the wrapper helpers in the Java servlet API: 
> http://docs.oracle.com/javaee/5/api/javax/servlet/ServletRequestWrapper.html
> http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponseWrapper.html
> I think these would make useful additions to Pig.

--
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

        

[jira] [Updated] (PIG-2538) Add helper wrapper classes for StoreFunc

Posted by "Dmitriy V. Ryaboy (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-2538?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmitriy V. Ryaboy updated PIG-2538:
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 0.11
           Status: Resolved  (was: Patch Available)

committed to trunk.
                
> Add helper wrapper classes for StoreFunc
> ----------------------------------------
>
>                 Key: PIG-2538
>                 URL: https://issues.apache.org/jira/browse/PIG-2538
>             Project: Pig
>          Issue Type: Improvement
>            Reporter: Bill Graham
>            Assignee: Bill Graham
>             Fix For: 0.11
>
>         Attachments: PIG_2538-1.patch
>
>
> We find ourselves wrapping {{StoreFuncs}} often and have written a {{StoreFuncDecorator}} and a {{StoreMetadataDecorator}} class. These make it easy to subclass and decorate only select {{StoreFuncs}} methods.
> This is conceptually similar to the wrapper helpers in the Java servlet API: 
> http://docs.oracle.com/javaee/5/api/javax/servlet/ServletRequestWrapper.html
> http://docs.oracle.com/javaee/5/api/javax/servlet/ServletResponseWrapper.html
> I think these would make useful additions to Pig.

--
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