HBASE-7024 TableMapReduceUtil.initTableMapperJob unnecessarily limits the types of outputKeyClass and outputValueClass
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1402710 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
22ee47fc22
commit
cd572001f0
|
@ -54,8 +54,8 @@ public class TableMapReduceUtil {
|
|||
*/
|
||||
public static void initTableMapJob(String table, String columns,
|
||||
Class<? extends TableMap> mapper,
|
||||
Class<? extends WritableComparable> outputKeyClass,
|
||||
Class<? extends Writable> outputValueClass, JobConf job) {
|
||||
Class<?> outputKeyClass,
|
||||
Class<?> outputValueClass, JobConf job) {
|
||||
initTableMapJob(table, columns, mapper, outputKeyClass, outputValueClass, job, true);
|
||||
}
|
||||
|
||||
|
@ -74,8 +74,8 @@ public class TableMapReduceUtil {
|
|||
*/
|
||||
public static void initTableMapJob(String table, String columns,
|
||||
Class<? extends TableMap> mapper,
|
||||
Class<? extends WritableComparable> outputKeyClass,
|
||||
Class<? extends Writable> outputValueClass, JobConf job, boolean addDependencyJars) {
|
||||
Class<?> outputKeyClass,
|
||||
Class<?> outputValueClass, JobConf job, boolean addDependencyJars) {
|
||||
|
||||
job.setInputFormat(TableInputFormat.class);
|
||||
job.setMapOutputValueClass(outputValueClass);
|
||||
|
|
|
@ -82,8 +82,8 @@ public class TableMapReduceUtil {
|
|||
*/
|
||||
public static void initTableMapperJob(String table, Scan scan,
|
||||
Class<? extends TableMapper> mapper,
|
||||
Class<? extends WritableComparable> outputKeyClass,
|
||||
Class<? extends Writable> outputValueClass, Job job)
|
||||
Class<?> outputKeyClass,
|
||||
Class<?> outputValueClass, Job job)
|
||||
throws IOException {
|
||||
initTableMapperJob(table, scan, mapper, outputKeyClass, outputValueClass,
|
||||
job, true);
|
||||
|
@ -104,9 +104,9 @@ public class TableMapReduceUtil {
|
|||
* @throws IOException When setting up the details fails.
|
||||
*/
|
||||
public static void initTableMapperJob(byte[] table, Scan scan,
|
||||
Class<? extends TableMapper> mapper,
|
||||
Class<? extends WritableComparable> outputKeyClass,
|
||||
Class<? extends Writable> outputValueClass, Job job)
|
||||
Class<? extends TableMapper> mapper,
|
||||
Class<?> outputKeyClass,
|
||||
Class<?> outputValueClass, Job job)
|
||||
throws IOException {
|
||||
initTableMapperJob(Bytes.toString(table), scan, mapper, outputKeyClass, outputValueClass,
|
||||
job, true);
|
||||
|
@ -129,8 +129,8 @@ public class TableMapReduceUtil {
|
|||
*/
|
||||
public static void initTableMapperJob(String table, Scan scan,
|
||||
Class<? extends TableMapper> mapper,
|
||||
Class<? extends WritableComparable> outputKeyClass,
|
||||
Class<? extends Writable> outputValueClass, Job job,
|
||||
Class<?> outputKeyClass,
|
||||
Class<?> outputValueClass, Job job,
|
||||
boolean addDependencyJars, Class<? extends InputFormat> inputFormatClass)
|
||||
throws IOException {
|
||||
job.setInputFormatClass(inputFormatClass);
|
||||
|
@ -165,8 +165,8 @@ public class TableMapReduceUtil {
|
|||
*/
|
||||
public static void initTableMapperJob(byte[] table, Scan scan,
|
||||
Class<? extends TableMapper> mapper,
|
||||
Class<? extends WritableComparable> outputKeyClass,
|
||||
Class<? extends Writable> outputValueClass, Job job,
|
||||
Class<?> outputKeyClass,
|
||||
Class<?> outputValueClass, Job job,
|
||||
boolean addDependencyJars, Class<? extends InputFormat> inputFormatClass)
|
||||
throws IOException {
|
||||
initTableMapperJob(Bytes.toString(table), scan, mapper, outputKeyClass,
|
||||
|
@ -190,8 +190,8 @@ public class TableMapReduceUtil {
|
|||
*/
|
||||
public static void initTableMapperJob(byte[] table, Scan scan,
|
||||
Class<? extends TableMapper> mapper,
|
||||
Class<? extends WritableComparable> outputKeyClass,
|
||||
Class<? extends Writable> outputValueClass, Job job,
|
||||
Class<?> outputKeyClass,
|
||||
Class<?> outputValueClass, Job job,
|
||||
boolean addDependencyJars)
|
||||
throws IOException {
|
||||
initTableMapperJob(Bytes.toString(table), scan, mapper, outputKeyClass,
|
||||
|
@ -215,8 +215,8 @@ public class TableMapReduceUtil {
|
|||
*/
|
||||
public static void initTableMapperJob(String table, Scan scan,
|
||||
Class<? extends TableMapper> mapper,
|
||||
Class<? extends WritableComparable> outputKeyClass,
|
||||
Class<? extends Writable> outputValueClass, Job job,
|
||||
Class<?> outputKeyClass,
|
||||
Class<?> outputValueClass, Job job,
|
||||
boolean addDependencyJars)
|
||||
throws IOException {
|
||||
initTableMapperJob(table, scan, mapper, outputKeyClass,
|
||||
|
|
Loading…
Reference in New Issue