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

Alan Gates commented on PIG-162:
--------------------------------

I like the methodForType suggestion, but it needs altered slightly.  The class 
itself that extends EvalFunc is parameterized on the return type.  So we 
actually need separate classes per type, not just separate methods.  So let's 
add a method to EvalFunc

Class classForType(byte type);

Given a type (using the DataType codes for type, which is how the logical layer 
thinks about types), it will return an alternate class to use for the function 
for that type.  If it returns null, then the current class will be used.  The 
default implementation in EvalFunc will return null.  This way users need not 
change their UDFs.

> Rework mapreduce submission and monitoring
> ------------------------------------------
>
>                 Key: PIG-162
>                 URL: https://issues.apache.org/jira/browse/PIG-162
>             Project: Pig
>          Issue Type: Sub-task
>         Environment: This bug tracks works to rework the submission and 
> monitoring interface to map reduce as described in  
> http://wiki.apache.org/pig/PigTypesFunctionalSpec
>            Reporter: Alan Gates
>            Assignee: Alan Gates
>         Attachments: changes.patch, changes1.patch, incr7.patch, incr8.patch, 
> mapreduceJumbo.patch, mapreduceJumboWithComInc.patch, modJumbo.patch, 
> newChanges.patch, newChanges1.patch, newChanges2.patch, split.png, 
> TEST-org.apache.pig.test.TestFilterOpString.txt, 
> TEST-org.apache.pig.test.TestLogToPhyCompiler.txt, 
> TEST-org.apache.pig.test.TestMapReduce.txt, 
> TEST-org.apache.pig.test.TestMRCompiler.txt, 
> TEST-org.apache.pig.test.TestMRCompiler.txt, 
> TEST-org.apache.pig.test.TestUnion.txt
>
>


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

Reply via email to