/** * Get the user's original partitioner. * @param conf the configuration to look in * @return the class that the user submitted */ static Class<? extends Partitioner> getJavaPartitioner(JobConf conf) { return conf.getClass(Submitter.PARTITIONER, HashPartitioner.class, Partitioner.class); }
/** * Get the user's original partitioner. * @param conf the configuration to look in * @return the class that the user submitted */ static Class<? extends Partitioner> getJavaPartitioner(JobConf conf) { return conf.getClass("hadoop.pipes.partitioner", HashPartitioner.class, Partitioner.class); }
public HadoopPartitionerTuplePartitionComputerFactory(Class<? extends Partitioner<K, V>> klass, ISerializerDeserializer<K> keyIO, ISerializerDeserializer<V> valueIO) { super(klass); this.keyIO = keyIO; this.valueIO = valueIO; }
/** * @param cls Hadoop partitioner class. * @param conf Job configuration. */ public HadoopV1Partitioner(Class<? extends Partitioner> cls, Configuration conf) { part = (Partitioner<Object, Object>) ReflectionUtils.newInstance(cls, conf); }