You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@datafu.apache.org by John Smith <le...@gmail.com> on 2015/12/17 21:47:11 UTC
ContextualEvalFunc
Hello,
is there any documentation how can I use ContextualEvalFunc? My intention
is to precompute output schema and pass those information - ideally one
JSON string/file from the fronted into the backend, then I can generate
code inside outputSchema method.
https://github.com/apache/incubator-datafu/blob/master/datafu-pig/src/main/java/datafu
/pig/util/ContextualEvalFunc.java
Thank you
Best,
John
Re: ContextualEvalFunc
Posted by Matthew Hayes <ma...@gmail.com>.
No other documentation other than what's in the javadoc, however you could
look at the rest of the DataFu code for examples of its use, which should
give you the general idea, like:
https://github.com/apache/incubator-datafu/blob/master/datafu-pig/src/main/java/datafu/pig/bags/EmptyBagToNullFields.java
-Matt
On Thu, Dec 17, 2015 at 12:47 PM, John Smith <le...@gmail.com> wrote:
> Hello,
>
> is there any documentation how can I use ContextualEvalFunc? My intention
> is to precompute output schema and pass those information - ideally one
> JSON string/file from the fronted into the backend, then I can generate
> code inside outputSchema method.
>
>
> https://github.com/apache/incubator-datafu/blob/master/datafu-pig/src/main/java/datafu
> /pig/util/ContextualEvalFunc.java
>
>
> Thank you
>
> Best,
> John
>