org.apache.hadoop.mapred.Partitioner Java Examples
The following examples show how to use
org.apache.hadoop.mapred.Partitioner.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Submitter.java From hadoop with Apache License 2.0 | 4 votes |
/** * 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); }
Example #2
Source File: Submitter.java From big-c with Apache License 2.0 | 4 votes |
/** * 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); }
Example #3
Source File: Submitter.java From RDFS with Apache License 2.0 | 4 votes |
/** * 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); }
Example #4
Source File: Submitter.java From hadoop-gpu with Apache License 2.0 | 4 votes |
/** * 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); }
Example #5
Source File: HadoopV1Partitioner.java From ignite with Apache License 2.0 | 2 votes |
/** * @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); }