You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Danny Antonetti (JIRA)" <ji...@apache.org> on 2013/02/17 21:43:12 UTC

[jira] [Commented] (PIG-2834) MultiStorage requires unused constructor argument

    [ https://issues.apache.org/jira/browse/PIG-2834?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13580279#comment-13580279 ] 

Danny Antonetti commented on PIG-2834:
--------------------------------------

I dont see how it is possible to do this, without breaking backwards compatibility.

MultiStorage has 3 consturctors, 

public MultiStorage(String parentPathStr, String splitFieldIndex)
public MultiStorage(String parentPathStr, String splitFieldIndex, String compression)
public MultiStorage(String parentPathStr, String splitFieldIndex, String compression, String fieldDel)


So I can not add a new constructor removing parentPathStr, because they already exist.
                
> MultiStorage requires unused constructor argument
> -------------------------------------------------
>
>                 Key: PIG-2834
>                 URL: https://issues.apache.org/jira/browse/PIG-2834
>             Project: Pig
>          Issue Type: Improvement
>          Components: data
>    Affects Versions: 0.10.0, 0.11
>         Environment: Linux
>            Reporter: Danny Antonetti
>            Priority: Trivial
>              Labels: newbie
>             Fix For: 0.12
>
>         Attachments: MultiStorage.patch
>
>
> each constructor in
> org.apache.pig.piggybank.storage.MultiStorage
> requires a constructor argument 'parentPathStr", that has no meaningful usage.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira