/** * Create a new key common to all child RRs. * @throws ClassCastException if key classes differ. */ @SuppressWarnings("unchecked") protected K createKey() { if (keyclass == null || keyclass.equals(NullWritable.class)) { return (K) NullWritable.get(); } return (K) ReflectionUtils.newInstance(keyclass, getConf()); }
/** * Create a new key common to all child RRs. * @throws ClassCastException if key classes differ. */ @SuppressWarnings("unchecked") protected K createKey() { if (keyclass == null || keyclass.equals(NullWritable.class)) { return (K) NullWritable.get(); } return (K) ReflectionUtils.newInstance(keyclass, getConf()); }
/** * Create a new key common to all child RRs. * @throws ClassCastException if key classes differ. */ @SuppressWarnings("unchecked") protected K createKey() { if (keyclass == null || keyclass.equals(NullWritable.class)) { return (K) NullWritable.get(); } return (K) ReflectionUtils.newInstance(keyclass, getConf()); }
/** * Create a new key common to all child RRs. * @throws ClassCastException if key classes differ. */ @SuppressWarnings("unchecked") protected K createKey() { if (keyclass == null || keyclass.equals(NullWritable.class)) { return (K) NullWritable.get(); } return (K) ReflectionUtils.newInstance(keyclass, getConf()); }
/** * Create a new key common to all child RRs. * @throws ClassCastException if key classes differ. */ @SuppressWarnings("unchecked") protected K createKey() { if (keyclass == null || keyclass.equals(NullWritable.class)) { return (K) NullWritable.get(); } return (K) ReflectionUtils.newInstance(keyclass, getConf()); }