pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Coveney <jcove...@gmail.com>
Subject Is it possible to instantiate a generic type with funcspec?
Date Sat, 15 Oct 2011 23:51:02 GMT
I imagine I know what the answer is, but thought I'd ask.

Let's say I have

class Foo<T> extends EvalFunc<T>

and I want the equivalent of

FuncSpec funcspec=new FuncSpec("org.path.to.Foo<Double>(info)");

Is this possible? Or am I going to have to make

DoubleFoo, FloatFoo, etc that set the generic type parameter?

Thanks for your help

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message