Re: InputFormat key and value class names
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
Given an InputFormat what is the easiest way of retrieving the class name of K and V? Is reflection the only way? Thanks! Bassam