Generics are lost after compilation anyway, so this doesn't really matter --
the check that you are returning the right type is a compile-time thing.  We
get around that in elephant-bird by setting the type our generic loaders are
supposed to work with in UDFContext; sadly, regular UDFs don't actually have
access to UDFContext.

On Sat, Oct 15, 2011 at 4:51 PM, Jonathan Coveney <jcove...@gmail.com>wrote:

> 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
>

Reply via email to