Re: InputFormat key and value class names

2010-01-14 Thread Aaron Kimball
The K and V generic qualifiers will be erased at compile time; they're not available at runtime. Given an instance of K or V (which will, of course, be provided to your mapper), though, you can easily-enough get its class: e.g.: class MyMapper extends Mapper { public void map (K1 k, V1 v, Conte

InputFormat key and value class names

2010-01-08 Thread Bassam Tabbara
Given an InputFormat what is the easiest way of retrieving the class name of K and V? Is reflection the only way? Thanks! Bassam