Re: Is it possible to instantiate a generic type with funcspec?

2011-10-15 Thread Dmitriy Ryaboy
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 actua

Is it possible to instantiate a generic type with funcspec?

2011-10-15 Thread Jonathan Coveney
I imagine I know what the answer is, but thought I'd ask. Let's say I have class Foo extends EvalFunc and I want the equivalent of FuncSpec funcspec=new FuncSpec("org.path.to.Foo(info)"); Is this possible? Or am I going to have to make DoubleFoo, FloatFoo, etc that set the generic type parame