pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Ding (JIRA)" <j...@apache.org>
Subject [jira] Updated: (PIG-1806) Modify embedded Pig API for usability
Date Tue, 18 Jan 2011 18:24:45 GMT

     [ https://issues.apache.org/jira/browse/PIG-1806?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Richard Ding updated PIG-1806:
------------------------------

    Attachment: PIG-1806.patch

> Modify embedded Pig API for usability 
> --------------------------------------
>
>                 Key: PIG-1806
>                 URL: https://issues.apache.org/jira/browse/PIG-1806
>             Project: Pig
>          Issue Type: Improvement
>    Affects Versions: 0.9.0
>            Reporter: Richard Ding
>            Assignee: Richard Ding
>             Fix For: 0.9.0
>
>         Attachments: PIG-1806.patch
>
>
>    * bind methods. Currently, to explicitly bind variables to parameters, the variable
type must be string:
> {code}
> public BoundScript bind(Map<String, String> vars) throws IOException {...}
> {code} 
> User needs explicitly convert variables to strings before passing them in. We propose
to change the method signature so user does not need to do the conversion:
> {code}
> public BoundScript bind(Map<String, Object> vars) throws IOException {...}
> {code} 
> Internally Pig uses toString() method to convert variables to strings.
>    * fs method. Current Pig.fs(...) method doesn't return any value. Since this method
just turns around to call FsShell.run() which has a return code, we should pass this return
code to the user;
> {code}
> public static int fs(String cmd) throws IOException {...}
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message